Перейти к содержанию

Vehicle::setColor

Материал из RAGE MP Wiki Archive

Function: sets vehicle body color. (Vehicle colors)

Syntax

<syntaxhighlight lang="javascript"> vehicle.setColor(primaryColor, secondaryColor); </syntaxhighlight>

Parameters

  • primaryColor: Int
  • secondaryColor: Int

Example

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

See Also