alt.Player.local.id

Get the player's identification number for server-side or client-side.

Syntax

readonly id: number;

Real World Example

const localPlayerID = alt.Player.local.id;

alt.Player.local can also be a player instance from server

results matching ""

    No results matching ""