Player::id

From RAGE Multiplayer Wiki
Revision as of 14:32, 11 September 2016 by Ragempdev (talk | contribs) (Created page with "This property is the id of a player. '''Note: this property is read-only.''' ==Example== <source lang="javascript"> mp.events.add( { "playerJoin" : player => {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This property is the id of a player. Note: this property is read-only.

Example

mp.events.add(
{
    "playerJoin" : player =>
    {
         console.log("Player ID: " + player.id);
    }
});