Hooks/Server/onChatSound
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]
- ply (Player)
- chatPhrase (string)
- chatText (string)
The player who triggered the chat sound.
The chat sound phrase that was detected.
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.