From RAGE Multiplayer Wiki
Revision as of 14:48, 18 August 2018 by Ragempdev (talk | contribs)
Jump to navigation Jump to search
Warning.png This page is Incomplete.

This function call added client-side event for any players in a specific dimension.


player.callInDimension(Number dimension, String eventName [, ...args]);

Required Arguments

  • dimension: The dimension in which the event will be sent.
  • 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.)


That's example will call event added on client side for player inside the dimension ID 2 and disable regeneration health.

let disableRegeneration = () => {; //Disable regeneration"Regeneration disabled"); //Output text to default chatbox
};'disablePlayerRegeneration', disableRegeneration);

mp.players.callInDimension(2, "disablePlayerRegeneration");

See Also