getNumModColors
GET_NUM_MOD_COLORS0xA551BE18C11A476DThe 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.
getNumModColors(paintType: number, p1: boolean): numbergetNumModColors(paintType: integer, p1: boolean): integerUsage
JavaScript
const result = getNumModColors(paintType, p1);Lua
local result = getNumModColors(paintType, p1)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
paintType | int | number | integer |
p1 | BOOL | boolean | boolean |
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.
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