player.seat

Description

Get the player's seat if they are in a vehicle. Note: Driver seat starts at -1 on client-side.

Syntax

readonly seat: number;

Example Usage

const seat = player.seat;
if (seat === 1) {
    console.log('They are the driver');
    return;
}

results matching ""

    No results matching ""