Entity::id
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 ( ??? )
This property is used for getting an entity ID. The ID is a unique identifier for the entity.
Server-Side
const playerID = mp.players.at(1).id;
console.log(playerID); // Player ID, e.g. 1 ( ??? )