VehicleClient

setVehicleSiren

SET_VEHICLE_SIREN0xF4924635A19EB37D

The GTA V native SET_VEHICLE_SIREN of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleSiren, in JavaScript and in Lua.

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

Usage

JavaScript
setVehicleSiren(vehicle, toggle);
Lua
setVehicleSiren(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.

Activate siren on vehicle (Only works if the vehicle has a siren).

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_SIREN(Vehicle vehicle, BOOL toggle)
Hash
0xF4924635A19EB37D

Open in the interactive natives reference