Vehicle::dashboardColor

From RAGE Multiplayer Wiki

This property using for getting or setting vehicle dashboard color. Dashboard colors are 1-157.

Setter

  • int color value

Getter

  • int color value

Example

mp.events.addCommand('dashboardcolor', (player, _, color) => {
    if (!player.vehicle) return; // check if player in vehicle or not
    if (color < 1 || color > 157) return; // check player input good color or not
    player.vehicle.dashboardColor = parseInt(color); // set vehicle's dashboard color
});