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

Function

isVehicleTaxiLightOn

Server and clientVehiclesIdentical to MTA:SA

Checks whether the vehicle's "TAXI" light is on. Works on both sides.

Syntax

bool isVehicleTaxiLightOn(vehicle element)

Arguments

elementvehicle
The vehicle.

Returns

true when lit.

Example

addCommandHandler("wolna", function(player)
    local vehicle = getPedOccupiedVehicle(player)
    if vehicle then setVehicleTaxiLightOn(vehicle, not isVehicleTaxiLightOn(vehicle)) end
end)

See also