isWheelDetached

Used to get if a wheel is no longer attached to the vehicle.

Returns a boolean.

Declaration

vehicle.isWheelDetached(wheel: number): boolean;

Usage

const isDetached = vehicle.isWheelDetached();

Real World Example

const vehicle = new alt.Vehicle('riot', 0, 0, 0, 0, 0, 0);
const isDetached = vehicle.isWheelDetached(2);

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

results matching ""

    No results matching ""