alt.Player.local.rot

Get the player's rotation.

Syntax

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

Real World Example

const localPlayerRot = alt.Player.local.rot;
alt.log(JSON.stringify(localPlayerRot));

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

results matching ""

    No results matching ""