Pool::at
Appearance
This function used for return element from pool at ID.
Syntax
void pool.at(int ID)
Example
That's example will return player by ID and output his name in console.
let player = mp.players.at(1488);
if (player) {
console.log(`Player with id 1488 have nickname ${player.name}`);
} else {
console.log(`Player by id 1488 does not exists...`);
};
See Also
- Functions
- Properties
- Arrays