getVehicleDirtColor
Shared
Tells the colour of the dirt on a vehicle's paint.
int, int, int|false getVehicleDirtColor(vehicle vehicle)
Parameters
| Name | Type | Description |
|---|---|---|
| vehicle | vehicle | The vehicle. |
Returns
Three numbers r, g, b, or false if it is not a vehicle. The default colour is 59, 57, 52.
Example
local vehicle = getPedOccupiedVehicle(localPlayer)
if vehicle then
local r, g, b = getVehicleDirtColor(vehicle)
outputDebugString(("dirt %d %d %d"):format(r, g, b))
end