From RAGE Multiplayer Wiki
Jump to navigation Jump to search
Js.png JavaScript

This property is used for getting an entity ID. The ID is a unique identifier for the entity.

Note warning.png A server-side ID is NOT the same as a client-side ID. Use remoteID clientside if you want it to match the server-side ID.


  • Int


This event will log to the console the players name and the ID they have been assigned when joining the server.

mp.events.add("playerJoin", (player) => {
	console.log(`${player.name} has joined. [${player.id}]`);

See Also