Vehicle::setModColor1
Changes the primary color type and color of the given vehicle
JavaScript
//List of color types
const MOD_COLOR_TYPE = {
MCT_METALLIC: 0,
MCT_CLASSIC: 1,
MCT_PEARLESCENT: 2,
MCT_MATTE: 3,
MCT_METALS: 4,
MCT_CHROME: 5,
MCT_CHAMELEON: 6 // only available on Gen9 platforms
MCT_NONE: 7 // if this is set, the vehicle doesn't use mod colors, it uses the regular color system
};
Parameters
- colorType: Number
- color: Number [List of Vehicle Colors]
- pearlescentColor: Number
Returns
- void
Pearlescent Color seems to always be 0 in the scripts.
Example
mp.players.local.vehicle.setModColor1(0, 44, 0); //change primary color of the vehicle to metallic bright red