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

Vehicle::setColours

Материал из RAGE MP Wiki Archive
Версия от 23:48, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

colorPrimary & colorSecondary are the paint index for the vehicle.
For a list of valid paint indexes, view: pastebin.com/pwHci0xK
-------------------------------------------------------------------------
Use this to get the number of color indices: pastebin.com/RQEeqTSM
Note: minimum color index is 0, maximum color index is (numColorIndices - 1)

Syntax

<syntaxhighlight lang="javascript">vehicle.setColours(colorPrimary, colorSecondary);</syntaxhighlight>

Required Arguments

  • colorPrimary: int
  • colorSecondary: int

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also