player.vehicle

Description

Get the player's current vehicle.

Syntax

readonly vehicle: Vehicle | null;

Real World Example

const vehicle = player.vehicle;

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

results matching ""

    No results matching ""