setVehicleHasMutedSirens
SET_VEHICLE_HAS_MUTED_SIRENS0xD8050E0EB60CF274The GTA V native SET_VEHICLE_HAS_MUTED_SIRENS of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleHasMutedSirens, in JavaScript and in Lua.
setVehicleHasMutedSirens(vehicle: Vehicle, toggle: boolean): voidsetVehicleHasMutedSirens(vehicle: Vehicle, toggle: boolean)Usage
JavaScript
setVehicleHasMutedSirens(vehicle, toggle);Lua
setVehicleHasMutedSirens(vehicle, toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
toggle | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
If set to true, prevents vehicle sirens from having sound, leaving only the lights.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_VEHICLE_HAS_MUTED_SIRENS(Vehicle vehicle, BOOL toggle)- Hash
0xD8050E0EB60CF274- Formerly
DISABLE_VEHICLE_IMPACT_EXPLOSION_ACTIVATION_SET_DISABLE_VEHICLE_SIREN_SOUND