Entity::id: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
(Fixed grammar)
Line 1: Line 1:
This property using for getting an entity id. ID is a unique identifier of the entity.
This property is used for getting an entity ID. The ID is a unique identifier for the entity.


==Getter==
==Getter==

Revision as of 10:12, 20 September 2017

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