Перейти к содержанию

Invoke

Материал из RAGE MP Wiki Archive
(перенаправлено с «Command.Invoke»)

Invokes a command at run-time.

Syntax

<syntaxhighlight lang="C#" >void NAPI.Command.Invoke(Client sender, string command, params object[] args);</syntaxhighlight>

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)

<syntaxhighlight lang="C#" > void InvokedFromSomwhere(Client sender) {

   NAPI.Command.Invoke(sender, "somecmd", "str1", 2, true);

} </syntaxhighlight>