Invoke

From RAGE Multiplayer Wiki
Revision as of 01:27, 27 November 2019 by Muphy (talk | contribs) (Created page with "Invokes a command at run-time. ==Syntax== <syntaxhighlight lang="C#" >void NAPI.Command.Invoke(Client sender, string command, params object[] args);</syntaxhighlight> '''Req...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Invokes a command at run-time.

Syntax

void NAPI.Command.Invoke(Client sender, string command, params object[] args);

Required Arguments

  • sender: parameter input should be in Client type.
  • command: parameter input should be in string type.
  • args: parameter input should be parameters.

Usage example(s)

void InvokedFromSomwhere(Client sender)
{
    NAPI.Command.Invoke(sender, "somecmd", "str1", 2, true);
}