- Documentation
- Server functions
- getVehicleSirens
Function
getVehicleSirens
Returns the list of siren points stored with addVehicleSirens and setVehicleSirens. Each point is a table with the fields x, y, z, Red, Green, Blue, Alpha, Min_Alpha.
Syntax
table getVehicleSirens(vehicle vehicle)Arguments
vehiclevehicle- The vehicle.
Returns
An array of points (empty when there are no sirens).
Example
local vehicle = createVehicle(596, 1535, -1670, 13.4)
addVehicleSirens(vehicle, 2, 2)
for i, point in ipairs(getVehicleSirens(vehicle)) do
outputDebugString(i .. ": " .. point.Red .. ", " .. point.Green .. ", " .. point.Blue)
end
See also
getVehicleSirenParamsReturns the siren settings fromaddVehicleSirensas a table:SirenCount,SirenTypeandFlags(["360"],DoLOSCheck,UseRandomiser,Silent).setVehicleSirensSets the position and colour of one siren point added withaddVehicleSirens.removeVehicleSirensRemoves the custom sirens added to the vehicle withaddVehicleSirens.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.