sirenActive

Used to set or get the siren activity of a vehicle.

Only applies to vehicles with sirens. Like a police car.

Returns a boolean.

Declaration

vehicle.sirenActive: boolean;

Usage

const isSirenActive = vehicle.sirenActive;

// OR

vehicle.sirenActive = true;

Real World Example

const vehicle = new alt.Vehicle('police', 0, 0, 0, 0, 0, 0);
vehicle.sirenActive = true;

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

results matching ""

    No results matching ""