alt.Player.local.seat

Get the player's seat if they are in a vehicle.

Note: Driver seat starts at -1 for natives.

Syntax

readonly seat: number;

Example Usage

const seat = alt.Player.local.seat;
if (seat === 1) {
    console.log('You are the driver');
    return;
}

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

results matching ""

    No results matching ""