Entity::id

From RAGE Multiplayer Wiki
Revision as of 14:14, 13 May 2017 by Kemperrr (talk | contribs) (Created page with "This property using for getting an entity id. ID is a unique identifier of the entity. == Example == <div class="header" style="background-color: #408DAE; color: #FFFFFF; bor...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Example

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

See Also