Hooks/Server/onNotify

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]

ParametersEdit

  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 valuesEdit

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