alt.Player.local.pos

Get the player's position.

Syntax

readonly pos: { x: number, y: number, z: number };

Example Usage

const localPlayerPos = alt.Player.local.pos;
alt.log(JSON.stringify(localPlayerPos));

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

results matching ""

    No results matching ""