Commands
MSK.RegisterCommand
Parameters
commandName - string
or table
- The Command
callback - function
- Function to execute
properties - boolean
or table
- Data Properties
Description
Parameter: properties
allowConsole -
boolean
- Allow to execute in server console - Optional, default:true
showSuggestion -
boolean
- Show chat suggestion - Optional, default:true
restricted -
boolean
orstring
ortable
- Restrict Command to specific groups with ace permissionhelp -
string
- Chat suggestionparams -
table
- Paramter for the command
Parameter: params
name -
string
- name of the argumenttype -
string
- type of the argument -number
,string
,playerId
,any
,player
-player
is only returning the playerData for ESX or QBCorehelp -
string
- chat suggestion of the argumentoptional -
boolean?
- Is the Argment optional? Has to be the last argument! - Optional, default:false
Last updated