isLightDamaged

Used to get if a light on a vehicle is damaged.

{
    UNKNOWN1: 0,
    UNKNOWN1: 1,
    LIGHT_BACK_LEFT: 2
    LIGHT_BACK_RIGHT: 3,
    LIGHT_LEFT_FRONT: 4,
    LIGHT_RIGHT_FRONT: 5,
}

LF = Left Front, RF = Right Front, etc.

Returns a boolean.

Declaration

vehicle.isLightDamaged(light: number): boolean;

Usage

const isDamaged = vehicle.isLightDamaged();

Real World Example

const vehicle = new alt.Vehicle('riot', 0, 0, 0, 0, 0, 0);
const isDamaged = vehicle.isLightDamaged(2);

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

results matching ""

    No results matching ""