Hooks/Server/onNotify
Jump to navigation
Jump to search
Hook | |
Hook name | onNotify(table plys, number msgType, number duration, string message) |
Description: | |
Called when a notification is sent. | |
Returns: | boolean suppress |
Realm: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onNotify]onNotify hook[/url][/b] |
Parameters[edit]
- plys (table)
- msgType (number)
- duration (number)
- message (string)
The table recipients of the notification.
The notification type (NOTIFY_ enum)
How long the notification should stay on screen.
The message of the notification.
Return values[edit]
- suppress (boolean)
Whether to suppress the notification. Return true to suppress.