setLightDamaged

Used to set the damage on a vehicle light.

{
    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.

Declaration

vehicle.setLightDamaged(light: number, isDamaged: boolean): void;

Usage

vehicle.setLightDamaged(0, false);

Real World Example

const vehicle = new alt.Vehicle('dloader', 0, 0, 0, 0, 0, 0);
vehicle.setLightDamaged(2, false);

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

results matching ""

    No results matching ""