getVehicleNeonColor
Shared
Tells the colour of a vehicle's neon.
int, int, int|false getVehicleNeonColor(vehicle vehicle)
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | vehicle | The vehicle. |
Returns
Three numbers r, g, b, or false if it is not a vehicle. A new vehicle has magenta neon (255, 0, 255).
Example
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
local r, g, b = getVehicleNeonColor(vehicle)
outputDebugString(("neon %d %d %d"):format(r, g, b))
end