Skip to main content

Player::callToStreamed

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Server-side JavaScript). Calling it does nothing or throws.

Server-side function

This function calls all streamed in players' clientside from the specified player passing data.

Syntax​

player.callToStreamed(includeSelf, 'eventName', [...args]);

Required Arguments​

  • *includeSelf: String (Calls the specified player's clientside also along with the streamed players to him)
  • *eventProcName: String
  • args: Any

Example​

Server-Side

mp.players.at(0).callToStreamed(false, 'catchedSuckers', [mp.players.at(0).name]);

Client-Side

mp.events.add('catchedSuckers', (name) => {
mp.gui.chat.push("You sucker got catched by" + name);
});