Players::callInRange: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "{{Incomplete Functions}}")
 
No edit summary
Line 1: Line 1:
{{Incomplete Functions}}
This function is used for calling a function for each player in range of position.
 
==Syntax==
<pre>
mp.players.callInRange(Vector3 position, int range, string eventName, [args]);
</pre>
 
 
==Example==
 
{{ServersideCode|
<pre>
mp.players.callInRange(player.position, 15, 'eventName', ['some string']);
</pre>
}}
 
==See Also==
{{PlayerPool_block}}

Revision as of 22:55, 10 December 2018

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

Syntax

mp.players.callInRange(Vector3 position, int range, string eventName, [args]);


Example

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

See Also