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

Function

getVehicleTailLightColor

Server and clientVehiclesTrilogy Hub only

Returns the tail light colour (255, 0, 0 by default).

Syntax

int, int, int getVehicleTailLightColor(vehicle vehicle)

Arguments

vehiclevehicle
The vehicle.

Returns

r, g, b.

Example

local vehicle = createVehicle(411, 2000, -1690, 13.5)
outputDebugString(table.concat({ getVehicleTailLightColor(vehicle) }, ", "))

See also