ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. getVehicleSirens

Function

getVehicleSirens

ServerVehiclesIdentical to MTA:SA

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