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

Vehicle::setColours

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

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