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

Function

getVehicleHeadLightColor

Server and clientVehiclesIdentical to MTA:SA

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)

See also