VehicleClient

setVehicleExtraColours

SET_VEHICLE_EXTRA_COLOURS0x2036F561ADD12E33

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

SignatureJavaScript
setVehicleExtraColours(
  vehicle: Vehicle,
  pearlescentColor: number,
  wheelColor: number
): void
SignatureLua
setVehicleExtraColours(
  vehicle: Vehicle,
  pearlescentColor: integer,
  wheelColor: integer
)

Usage

JavaScript
setVehicleExtraColours(vehicle, pearlescentColor, wheelColor);
Lua
setVehicleExtraColours(vehicle, pearlescentColor, wheelColor)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
pearlescentColorintnumberinteger
wheelColorintnumberinteger

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.

They use the same color indexs as setVehicleColours.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_EXTRA_COLOURS(Vehicle vehicle, int pearlescentColor, int wheelColor)
Hash
0x2036F561ADD12E33

Open in the interactive natives reference