From RAGE Multiplayer Wiki

This function triggers an event for:

  • the whole server
  • specified players array

Syntax eventName[, Array Arguments]); players, String eventName[, Array Arguments]);

Required Arguments

  • eventName: Event name, what will be called.
  • args: Any arguments, what should be sended to client. Supports entities, strings, numbers and booleans. (Objects and Arrays should be packed to JSON format.)


1. Trigger "disablePlayerRegeneration" event for everyone near new mp.Vector3(150, 100, 50).

const playersArray = mp.players.toArray().filter((player) => (player.dist(new mp.Vector3(150, 100, 50)) < 20));, "disablePlayerRegeneration");

2. Trigger "disablePlayerRegeneration" event for everyone.


See Also