Vehicle::setColor

From RAGE Multiplayer Wiki
Revision as of 05:48, 24 October 2017 by Kostya nad (talk | contribs)

This function used for set vehicle body color.

Syntax

void vehicle.setColour(int colour1, int colour2);

Required Arguments

  • colour1: Primary color.
  • colour2: Secondary color.

Example

no example, ez

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

See Also

Template:Vehicle block