Difference between revisions of "ScriptHook.RegisterCommand"
From Nomad DB
(Created page with "This function is used to register commands to the Ingame Console. == Syntax == <syntaxhighlight lang="lua"> ScriptHook.RegisterCommand(name, callb...") |
|||
Line 8: | Line 8: | ||
* '''callback''' (function) Command function | * '''callback''' (function) Command function | ||
* '''Returns: [[ICommandRegistry]]''' | * '''Returns: [[ICommandRegistry]]''' | ||
− | |||
− | |||
== Related Pages == | == Related Pages == |
Revision as of 13:55, 15 April 2020
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