player.vehicle

Description

Get the player's current vehicle.

Syntax

readonly vehicle: Vehicle | null;

Example Usage

const vehicle = player.vehicle;

if (!vehicle) {
    console.log('THEY ARE NOT IN A VEHICLE');
    return;
}

results matching ""

    No results matching ""