From DarkRP
Jump to navigation Jump to search
Hook name onChatSound(Player ply, string chatPhrase, string chatText)
When a chat sound is played.
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onChatSound]onChatSound hook[/url][/b]


  1. ply (Player)
  2. The player who triggered the chat sound.

  3. chatPhrase (string)
  4. The chat sound phrase that was detected.

  5. chatText (string)
  6. The whole chat text the player sent that contains the chat sound phrase.

Return values[edit]

This hook does not accept return values. You can still return a value to override the default implementation of this hook.