Hooks/Server/canChatSound

From Official DarkRP Wiki
Jump to: navigation, search
Hook
Hook name canChatSound(Player ply, string chatPhrase, string chatText)
Description:
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]

Parameters

  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

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