VehicleClient

getNumModColors

GET_NUM_MOD_COLORS0xA551BE18C11A476D

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

SignatureJavaScript
getNumModColors(paintType: number, p1: boolean): number
SignatureLua
getNumModColors(paintType: integer, p1: boolean): integer

Usage

JavaScript
const result = getNumModColors(paintType, p1);
Lua
local result = getNumModColors(paintType, p1)

Parameters

ParameterTypeJavaScriptLua
paintTypeintnumberinteger
p1BOOLbooleanboolean

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.

paintType:
0: Normal
1: Metallic
2: Pearl
3: Matte
4: Metal
5: Chrome
6: Chameleon

Reference

Namespace
Vehicle VEHICLE
In the game
int GET_NUM_MOD_COLORS(int paintType, BOOL p1)
Hash
0xA551BE18C11A476D

Open in the interactive natives reference