Hooks/Server/onNotify

From DarkRP
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: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onNotify]onNotify hook[/url][/b]

Parameters[edit]

  1. plys (table)
  2. The table recipients of the notification.

  3. msgType (number)
  4. The notification type (NOTIFY_ enum)

  5. duration (number)
  6. How long the notification should stay on screen.

  7. message (string)
  8. The message of the notification.

Return values[edit]

  1. suppress (boolean)
  2. Whether to suppress the notification. Return true to suppress.