From DarkRP
Jump to navigation Jump to search
Function name DarkRP.defineChatCommand(string chat command, function callback)
Create a chat command that calls the function
Returns: nil
Part of Library: DarkRP
Realm: NewerServer.png
BBCode Link: [b][url=]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.