RegCommand
Register a command with lots of additional parameters
Last updated
Register a command with lots of additional parameters
Last updated
name
string
name of the command
----
accessFromConsole
boolean?
access from the console
false
accessFromInGame
boolean?
access from the game
false
cb
function?
callback function's parameters:
args, rawCommand, IPlayer, FPlayer
----
isPlayerAllowed
boolean?
only ace allowed players can access
the command ( command.cmdName )
false
suggestions
table?
table format: { help: string?, restricted: boolean?, args: table[]? }?
----