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

Function

getVehicleLampNames

Server and clientVehiclesTrilogy Hub only

Returns the names of all twelve lamps accepted by setVehicleLampState, in the order of numbers 0-11 (from front_left to indicator_rear_right). Groups (front, all…) are not in the list.

Syntax

table getVehicleLampNames()

Returns

An array of 12 strings.

Example

for number, name in ipairs(getVehicleLampNames()) do
    outputDebugString((number - 1) .. ": " .. name)
end

See also