setVehicleModColor2
SET_VEHICLE_MOD_COLOR_20x816562BADFDEC83EThe GTA V native SET_VEHICLE_MOD_COLOR_2 of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleModColor2, in JavaScript and in Lua.
setVehicleModColor2(vehicle: Vehicle, paintType: number, color: number): voidsetVehicleModColor2(vehicle: Vehicle, paintType: integer, color: integer)Usage
JavaScript
setVehicleModColor2(vehicle, paintType, color);Lua
setVehicleModColor2(vehicle, paintType, color)Parameters
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
vehicle | Vehicle | number | integer | |
paintType | int | number | integer | |
color | int | number | integer | number of the color |
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.
Changes the secondary paint type and color
paintType:
0: Normal
1: Metallic
2: Pearl
3: Matte
4: Metal
5: Chrome
6: Chameleon
Full list of vehicle colors and vehicle plates by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/vehicleColors.json
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_VEHICLE_MOD_COLOR_2(Vehicle vehicle, int paintType, int color)- Hash
0x816562BADFDEC83E