- Documentation
- Server functions
- getVehicleSirenParams
Function
getVehicleSirenParams
Returns the siren settings from addVehicleSirens as a table: SirenCount, SirenType and Flags (["360"], DoLOSCheck, UseRandomiser, Silent).
Syntax
table getVehicleSirenParams(vehicle vehicle)Arguments
vehiclevehicle- The vehicle.
Returns
A settings table, or false when the vehicle has no sirens.
Example
local vehicle = createVehicle(596, 1535, -1670, 13.4)
addVehicleSirens(vehicle, 4, 2, true)
local params = getVehicleSirenParams(vehicle)
outputDebugString("Syren: " .. params.SirenCount)
See also
addVehicleSirensStores a set of custom siren lights for the vehicle: number of points, type and flags. After it,setVehicleSirenssets the position and colour of each point.getVehicleSirensReturns the list of siren points stored withaddVehicleSirensandsetVehicleSirens. Each point is a table with the fieldsx,y,z,Red,Green,Blue,Alpha,Min_Alpha.