Vehicle::pearlescentColor
This function is used to set the pearlescent color of a vehicle. Using the Vehicle colors.
Syntax
int vehicle.pearlescentColor
Example
This example sets red pearlescent color for the vehicle, in which the player sits.
mp.events.add('playerCommand', (player, cmd) => {
let arr = cmd.split(' ');
if (arr[0] == 'pcolor' && player.vehicle) {
player.vehicle.pearlescentColor = 45;
}
});