Hooks/Server/onChatSound

From DarkRP
Hook
Hook name onChatSound(Player ply, string chatPhrase, string chatText)
Description:
When a chat sound is played.
Returns: nil
Realm:
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onChatSound]onChatSound 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 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.