Skip to main content

Vehicle::dashboardColor

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Server-side JavaScript). Calling it does nothing or throws.

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
});