Functions/DarkRP/Server/definePrivilegedChatCommand
Jump to navigation
Jump to search
Function | |
Function name | DarkRP.definePrivilegedChatCommand(string chat command, string privilege, function callback) |
Description: | |
Create a chat command that calls the function if the player has the right CAMI privilege. Will automatically notify the user when they don't have access. Note that chat command functions registered with this function can NOT override the chat that will appear after the command has been executed. | |
Returns: | nil |
Part of Library: | DarkRP |
Realm: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Server/definePrivilegedChatCommand]DarkRP.definePrivilegedChatCommand[/url][/b] |
Function parameters[edit]
- chat command (string)
- privilege (string)
- callback (function)
The registered chat command
The name of the CAMI privilege
The function that is called when the chat command is executed
Function return values[edit]
This function does not return any value.