Pool::toArray

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

This function converts a pool to a JavaScript array.

Syntax

pool.toArray();

Example

Server-Side
var suchJavascript = mp.players.toArray();
if(suchJavascript.every((player) => { return player.isAiming; } ))
    console.log("everyone are aiming");