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


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

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

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

Return values[edit]

  1. canChatSound (boolean)
  2. False if the chat sound should not be played.