Hooks/Server/onNotify

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name onNotify(table ply, number msgType, number msgLen, string message)
Description:
Called when a notification is sent to player(s).
Returns: boolean
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onNotify]onNotify hook[/url][/b]

Parameters

  1. ply (table)
  2. The receiver(s) of the message.

  3. msgType (number)
  4. The type of the message.

  5. msgLen (number)
  6. Length of the message.

  7. message (string)
  8. Message sent to player(s).

Return values

  1. isPreventMessage (boolean)
  2. Prevent sending the message.