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