VehicleClient

setVehicleHasMutedSirens

SET_VEHICLE_HAS_MUTED_SIRENS0xD8050E0EB60CF274

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

SignatureJavaScript
setVehicleHasMutedSirens(vehicle: Vehicle, toggle: boolean): void
SignatureLua
setVehicleHasMutedSirens(vehicle: Vehicle, toggle: boolean)

Usage

JavaScript
setVehicleHasMutedSirens(vehicle, toggle);
Lua
setVehicleHasMutedSirens(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

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

Open in the interactive natives reference