Difference between revisions of "TriggerEvent"

From RAGE Multiplayer Wiki
Jump to navigation Jump to search
(Created page with "Triggers a JavaScript serverside event. {{CSharpContainer| {{#tag:syntaxhighlight|void {{Template:CSharp_Serverside_namespace}}LocalEvent.TriggerEvent(string eventName, para...")
 
(No difference)

Latest revision as of 09:50, 30 November 2019

Triggers a JavaScript serverside event.


C# Syntax
C.png

void NAPI.LocalEvent.TriggerEvent(string eventName, params object[] args);

Parameters

  • eventName: A string with the name of the event name on JavaScript.
  • args: An optional array of objects with the parameters passed to the event.


Example

NAPI.LocalEvent.TriggerEvent("MyCustomJavaScriptEvent");