Entity::id

From RAGE Multiplayer Wiki
Revision as of 10:12, 20 September 2017 by CurtisVL (talk | contribs) (Fixed grammar)

This property is used for getting an entity ID. The ID is a unique identifier for the entity.

Getter

  • Number

Example

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

See Also