Hooks/Server/canChatSound
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]
- ply (Player)
- chatPhrase (string)
- chatText (string)
The player who triggered the chat sound.
The chat sound phrase that has been detected.
The whole chat text the player sent that contains the chat sound phrase.
Return values[edit]
- canChatSound (boolean)
False if the chat sound should not be played.