Hooks/Server/onChatSound

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

Parameters

  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

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