alt.Player.local.pos

Get the player's position.

Syntax

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

Real World Example

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 ""