VehicleClient

setVehicleColourCombination

SET_VEHICLE_COLOUR_COMBINATION0x33E8CD3322E2FE31

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

SignatureJavaScript
setVehicleColourCombination(vehicle: Vehicle, colorCombination: number): void
SignatureLua
setVehicleColourCombination(vehicle: Vehicle, colorCombination: integer)

Usage

JavaScript
setVehicleColourCombination(vehicle, colorCombination);
Lua
setVehicleColourCombination(vehicle, colorCombination)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
colorCombinationintnumberinteger

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 selected vehicle's colors to the specified index of the color combination found in the vehicle's carvariations.meta entry.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_COLOUR_COMBINATION(Vehicle vehicle, int colorCombination)
Hash
0x33E8CD3322E2FE31

Open in the interactive natives reference