- Documentation
- Shared functions
- getVehicleLampNames
Function
getVehicleLampNames
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