ScriptHook.RegisterCommand
From Nomad DB
Revision as of 11:39, 15 April 2020 by Jan (talk | contribs) (Created page with "This function is used to register commands to the Ingame Console. == Syntax == <syntaxhighlight lang="lua"> ScriptHook.RegisterCommand(name, callb...")
This function is used to register commands to the Ingame Console.
Syntax
ScriptHook.RegisterCommand(name, callback)
- name (string) Name of the command
- callback (function) Command function
- Returns: ICommandRegistry