Functions/DarkRP/Server/defineChatCommand
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: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Server/defineChatCommand]DarkRP.defineChatCommand[/url][/b] |
Function parameters[edit]
- chat command (string)
- callback (function)
The registered chat command
The function that is called when the chat command is executed
Function return values[edit]
This function does not return any value.