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

Vehicle::setColor

Материал из RAGE MP Wiki Archive
Версия от 08:03, 23 сентября 2018; imported>MrPancakers
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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