Entity::id: Difference between revisions

From RAGE Multiplayer Wiki
(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...")
 
No edit summary
Line 1: Line 1:
This property using for getting an entity id. ID is a unique identifier of the entity.
This property using for getting an entity id. ID is a unique identifier of the entity.
==Getter==
* '''<span style="color:#008017>Number</span>'''


== Example ==
== Example ==

Revision as of 14:23, 13 May 2017

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