ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. getVehicleSirensOn

Function

getVehicleSirensOn

Server and clientVehiclesIdentical to MTA:SA

Checks whether the vehicle's siren is switched on with setVehicleSirensOn. Works on both sides.

Syntax

bool getVehicleSirensOn(vehicle element)

Arguments

elementvehicle
The vehicle.

Returns

true when the siren is on.

Example

setTimer(function()
    local vehicle = getPedOccupiedVehicle(localPlayer)
    if vehicle and getVehicleSirensOn(vehicle) then outputDebugString("Na sygnale") end
end, 5000, 0)

See also