Functions/DarkRP/Server/defineChatCommand

From Official DarkRP Wiki
Revision as of 14:14, 31 October 2015 by DarkRPBot (talk | contribs) (Wikibot updated DarkRP documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

  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

This function does not return any value.