From DarkRP
Jump to navigation Jump to search
Hook name canChatCommand(Player ply, string command, string arguments)
Called when a player tries to run any chat command or uses the DarkRP console command.
Returns: boolean canChatCommand
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canChatCommand]canChatCommand hook[/url][/b]


  1. ply (Player)
  2. The player who spoke.

  3. command (string)
  4. The thing they said.

  5. arguments (string)
  6. The arguments of the chat command, given as one string.

Return values[edit]

  1. canChatCommand (boolean)
  2. Whether the player is allowed to run the chat command.