TriggerResourceEvent

From GT-MP
Jump to: navigation, search
TriggerResourceEvent
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

Triggers a resource event.

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.

Syntax

In C#
Server-Side Function

API.triggerResourceEvent(string eventName, params object[] arguments);

Required Arguments

  • eventName parameter input should be in string type.
  • arguments parameter input should be in object type.

Usage example

In C#
Server-Side Function

API.triggerResourceEvent("MYRESOURCE_HAS_STARTED", true);

References