Unregister: Difference between revisions
m (→Syntax) |
|||
| Line 8: | Line 8: | ||
}} | }} | ||
{{CSharpContainer| | |||
==Usage example(s)== | ==Usage example(s)== | ||
<syntaxhighlight lang="C#" > | <syntaxhighlight lang="C#" > | ||
| Line 17: | Line 18: | ||
[[Category:Serverside API]] | [[Category:Serverside API]] | ||
}} | |||
Latest revision as of 19:35, 14 September 2021
Unregisters an injected command at runtime.
C# Syntax
Syntax
bool NAPI.Command.Unregister(string commandName);
NOTE: This function returns a bool, true if successful and false if failed.
C# Syntax
Usage example(s)
public void InvokedFromSomewhere()
{
NAPI.Command.Unregister("testcmd");
}