πŸ•΅οΈβ€β™‚οΈUsage

Announcements

Commands (in-game)

/announcement <duration_ms> <message>
/announcementto <serverId> <duration_ms> <message>

Server Event (from client)

TriggerServerEvent('risk-notify:announcement', duration, message)

Targeted Announcement (single player)

TriggerServerEvent('risk-notify:announcementto', playerId, duration, message)

Export (from server)

exports['risk-notify']:SendAnnouncement(duration, message, name, title)

Parameters

  • duration β†’ duration in milliseconds

  • message β†’ text to display

  • name β†’ optional sender name (fallback = Config.TxAdminName or "Server")

  • title β†’ optional title (default = "Announcement")


Help Notifications

Export

Displays a short on-screen prompt bound to the specified key (e.g. "E").


Notifications

Export (Client & Server)

Client Event (optional)


Progress Bars

Start

Cancel

Cancel Controls

Press Backspace or X to cancel.


API & Exports

Export / Trigger
Arguments
Description

HelpNotify(key, message)

(string key, string message)

Displays a temporary help prompt

Notify(data)

(table {type, title, message, duration})

Displays a custom notification

startProgress(duration, label, opts)

number, string, table

Starts a progress bar with optional parameters

cancelProgress()

–

Cancels the active progress bar

SendAnnouncement(dur, msg, [name], [title])

number, string, string?, string?

Sends a server-wide announcement


Examples


txAdmin Integration

If you enable Config.UseTxAdminAnnouncements = true, make sure to disable the default txAdmin announcements in your server.cfg:

Last updated