- Documentation
- Shared functions
- getVehicleHeadLightColor
Function
getVehicleHeadLightColor
Returns the headlight colour (white 255, 255, 255 by default).
Syntax
int, int, int getVehicleHeadLightColor(vehicle vehicle)Arguments
vehiclevehicle- The vehicle.
Returns
r, g, b.
Example
local vehicle = createVehicle(411, 2000, -1690, 13.5)
local r, g, b = getVehicleHeadLightColor(vehicle)
outputDebugString(r .. ", " .. g .. ", " .. b)