Functions/DarkRP/Server/defineChatCommand

From DarkRP
Jump to navigation Jump to search
Function
Function name DarkRP.defineChatCommand(string chat command, function callback)
Description:
Create a chat command that calls the function
Returns: nil
Part of Library: DarkRP
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Server/defineChatCommand]DarkRP.defineChatCommand[/url][/b]

Function parameters[edit]

  1. chat command (string)
  2. The registered chat command

  3. callback (function)
  4. The function that is called when the chat command is executed


Function return values[edit]

This function does not return any value.