getVehicleColourCombination
GET_VEHICLE_COLOUR_COMBINATION0x6A842D197F845D56The GTA V native GET_VEHICLE_COLOUR_COMBINATION of the VEHICLE namespace, as LS:MP client scripts call it: the global function getVehicleColourCombination, in JavaScript and in Lua.
getVehicleColourCombination(vehicle: Vehicle): numbergetVehicleColourCombination(vehicle: Vehicle): integerUsage
JavaScript
const result = getVehicleColourCombination(vehicle);Lua
local result = getVehicleColourCombination(vehicle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns the index of the color combination found in the vehicle's carvariations.meta entry.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
int GET_VEHICLE_COLOUR_COMBINATION(Vehicle vehicle)- Hash
0x6A842D197F845D56