Hooks/Server/canChatCommand
Jump to navigation
Jump to search
Hook | |
Hook name | canChatCommand(Player ply, string command, string arguments) |
Description: | |
Called when a player tries to run any chat command or uses the DarkRP console command. | |
Returns: | boolean canChatCommand |
Realm: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canChatCommand]canChatCommand hook[/url][/b] |
Parameters[edit]
- ply (Player)
- command (string)
- arguments (string)
The player who spoke.
The thing they said.
The arguments of the chat command, given as one string.
Return values[edit]
- canChatCommand (boolean)
Whether the player is allowed to run the chat command.