destroy

Used to destroy a vehicle from existence.

Declaration

vehicle.destroy(): void;

Usage

vehicle.destroy();

Real World Example

const vehicle = new alt.Vehicle('elegy', 0, 0, 0, 0, 0, 0);

if (vehicle && vehicle.destroy) {
    vehicle.destroy();
}

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

results matching ""

    No results matching ""