Hooks/Server/canChatSound

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

Parameters[edit]

  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.