TriggerClientEventInDimension

From GTA Network Wiki
Jump to: navigation, search

TriggerClientEventInDimension
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

Triggers a client-side script event call from server-side to all players in a given dimension. To trigger an event for a single player, use TriggerClientEvent.

Syntax

void NAPI.ClientEvent.TriggerClientEventInDimension(uint dimension, string eventName, params object[] args);

Required Arguments

  • dimension: parameter input should be in uint type.
  • eventName: parameter input should be in string type.
  • args: parameter input should be in object type. See the Synchronized Types for which types of objects you can pass here.

Usage example

NAPI.ClientEvent.TriggerClientEventInDimension(125, "MyEvent", 1, 2, 3, "DUCK");

Changelog

Version Description
1.0 Release.

References