VehicleClient

getVehicleColourCombination

GET_VEHICLE_COLOUR_COMBINATION0x6A842D197F845D56

The 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.

SignatureJavaScript
getVehicleColourCombination(vehicle: Vehicle): number
SignatureLua
getVehicleColourCombination(vehicle: Vehicle): integer

Usage

JavaScript
const result = getVehicleColourCombination(vehicle);
Lua
local result = getVehicleColourCombination(vehicle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger

Returns

int JavaScript number, Lua integer

Notes

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

Open in the interactive natives reference