TriggerClientEventForAll

From GTA Network Wiki
Jump to: navigation, search

TriggerClientEventForAll
Server-Side Function

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

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

Syntax

void NAPI.ClientEvent.TriggerClientEventForAll(string eventName, params object[] args);

Required Arguments

  • 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.TriggerClientEventForAll("MyEvent", 1, 2, 3, "DUCK");

Changelog

Version Description
1.0 Release.

References