VehicleClient

setVehicleTyreSmokeColor

SET_VEHICLE_TYRE_SMOKE_COLOR0xB5BA80F839791C0F

The GTA V native SET_VEHICLE_TYRE_SMOKE_COLOR of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleTyreSmokeColor, in JavaScript and in Lua.

SignatureJavaScript
setVehicleTyreSmokeColor(
  vehicle: Vehicle,
  r: number,
  g: number,
  b: number
): void
SignatureLua
setVehicleTyreSmokeColor(
  vehicle: Vehicle,
  r: integer,
  g: integer,
  b: integer
)

Usage

JavaScript
setVehicleTyreSmokeColor(vehicle, r, g, b);
Lua
setVehicleTyreSmokeColor(vehicle, r, g, b)

Parameters

ParameterTypeJavaScriptLuaDescription
vehicleVehiclenumberintegerThe vehicle that is the target of this method.
rintnumberintegerThe red level in the RGB color code.
gintnumberintegerThe green level in the RGB color code.
bintnumberintegerThe blue level in the RGB color code.

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Sets the tire smoke's color of this vehicle.

Note: setting r,g,b to 0 will give the car the "Patriot" tire smoke.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_TYRE_SMOKE_COLOR(Vehicle vehicle, int r, int g, int b)
Hash
0xB5BA80F839791C0F

Open in the interactive natives reference