Entity::id

From RAGE Multiplayer Wiki
Revision as of 14:16, 16 January 2018 by Toxsi (talk | contribs) (→‎Example)

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