setVehicleColourCombination
SET_VEHICLE_COLOUR_COMBINATION0x33E8CD3322E2FE31The 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.
setVehicleColourCombination(vehicle: Vehicle, colorCombination: number): voidsetVehicleColourCombination(vehicle: Vehicle, colorCombination: integer)Usage
JavaScript
setVehicleColourCombination(vehicle, colorCombination);Lua
setVehicleColourCombination(vehicle, colorCombination)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
colorCombination | int | number | integer |
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