Vehicle::setColor

From RAGE Multiplayer Wiki
Revision as of 08:03, 23 September 2018 by MrPancakers (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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