Vehicle::setColor

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Function: sets vehicle body color. (Vehicle colors)

Syntax

vehicle.setColor(primaryColor, secondaryColor);

Parameters

  • primaryColor: Int
  • secondaryColor: Int

Example

var theVehicle = mp.vehicles.new(418536135, new mp.Vector3(-17.460, 39.787, 71.318)); // spawn Infernus
theVehicle.setColor(0,0); // set black colour

See Also