From RAGE Multiplayer Wiki
Jump to navigation Jump to search

This function writes a chat message for all players in range (like Player::outputChatBox).


void players.broadcastInRange(Vecto3 position, number range [, number dimension], string text);

Required Arguments

  • position: The position from which the broadcast will be sent.
  • range: The range from position.
  • text: The text to be sent.

Optional Arguments

  • dimension: The dimension in which the broadcast will be sent.


This example sends message to all players in 15 units from the player"say", (player, message) => {
	let pos = player.position;

	mp.players.broadcastInRange(pos, 15, `Message from ${}: ${message}`);


See Also