doesWheelHasTire

Used to check if a specified wheel has a tire or not.

Returns a boolean.

Declaration

vehicle.doesWheelHasTire(wheelId: number): boolean

Usage

const hasTire = vehicle.doesWheelHasTire;

Real World Example

const someVehicle = alt.Vehicle.all[0];

if (someVehicle.doesWheelHasTire(0)) {
    console.log(`The vehicle at wheel id 0 currently has a tire.`);
} else {
    console.log(`The vehicle at wheel id 0 does not have a tire.`);
}

These examples assume you have vehicle created or available on server-side

results matching ""

    No results matching ""