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

Function

getVehicleLampStates

Server and clientVehiclesTrilogy Hub only

Returns the state of all twelve lamps of a vehicle as a table of name → 'auto'/'on'/'off'.

Syntax

table getVehicleLampStates(vehicle vehicle)

Arguments

vehiclevehicle
The vehicle.

Returns

A table { front_left = 'auto', ... }.

Example

local vehicle = createVehicle(411, 2000, -1690, 13.5)
for name, state in pairs(getVehicleLampStates(vehicle)) do
    outputDebugString(name .. " = " .. state)
end

See also