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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Example

Related Pages