Players::callInRange

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

This function is used for calling a function for each player in range of position.

Syntax

mp.players.callInRange(Vector3 position, Number range, String eventName, [args]);
mp.players.callInRange(Vector3 position, Number range, Number dimension, String eventName, [args]);


Example

Server-Side
mp.players.callInRange(player.position, 15, 'eventName', [args]);

See Also