Entity::id

From RAGE Multiplayer Wiki
Revision as of 14:23, 13 May 2017 by Kemperrr (talk | contribs)

This property using for getting an entity id. ID is a unique identifier of the entity.

Getter

  • Number

Example

Server-Side
const playerID = mp.players.at(1).id; 
console.log(playerID); // Player ID, e.g. 1 ( ??? )

See Also