ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setVehicleTailLightColor

Function

setVehicleTailLightColor

ServerVehiclesTrilogy Hub only

Changes the colour of a vehicle's tail lights for every player (red by default).

Syntax

bool setVehicleTailLightColor(vehicle vehicle, int r, int g, int b)

Arguments

vehiclevehicle
The vehicle.
rint
Red 0-255.
gint
Green 0-255.
bint
Blue 0-255.

Returns

true on success.

Example

local vehicle = createVehicle(411, 2000, -1690, 13.5)
setVehicleTailLightColor(vehicle, 255, 0, 120)

See also