GetVehicleParamsSirenState
From SA-MP Wiki
Description:
Returns a vehicle's siren state (on/off).
(vehicleid)
vehicleid | The ID of the vehicle to get the siren state of. |
Return Values:
- -1: Vehicle siren hasn't been set yet (off)
- 0: Vehicle siren is off
- 1: Vehicle siren is on
new siren = GetVehicleParamsSirenState(vehicleid); if(siren == 1) { // Siren is on, do something } else { // Siren is off, do something }
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnVehicleSirenStateChange: Called when a vehicle's siren is toggled on/off.