destroyed

Used to get the current vehicle destruction state.

true means the vehicle is destroyed.

Returns a boolean.

Declaration

vehicle.destroyed: boolean

Usage

const isDestroyed = vehicle.destroyed;

Real World Example

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

if (someVehicle.destroyed) {
    console.log(`The vehicle is destroyed`);
}

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

results matching ""

    No results matching ""