Vehicle::setModColor1: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
(Update mod color types)
Line 1: Line 1:
paintType:<br>0: Normal<br>1: Metallic<br>2: Pearl<br>3: Matte<br>4: Metal<br>5: Chrome<br><br>color: number of the color.<br><br>p3 seems to always be 0.
==MOD_COLOR_TYPE==
<pre>
const MOD_COLOR_TYPE = {
    MCT_METALLIC: 0,
    MCT_CLASSIC: 1,
    MCT_PEARLESCENT: 2,
    MCT_MATTE: 3,
    MCT_METALS: 4,
    MCT_CHROME: 5,
    MCT_CHAMELEON: 6 // only available on Gen9 platforms
    MCT_NONE: 7 // if this is set, the vehicle doesn't use mod colors, it uses the regular color system
};
</pre>
 
 
<br>color: number of the color.<br><br>p3 seems to always be 0.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.setModColor1(paintType, color, pearlescentColor);</syntaxhighlight>
<syntaxhighlight lang="javascript">vehicle.setModColor1(paintType, color, pearlescentColor);</syntaxhighlight>

Revision as of 00:00, 17 November 2022

MOD_COLOR_TYPE

const MOD_COLOR_TYPE = {
    MCT_METALLIC: 0,
    MCT_CLASSIC: 1,
    MCT_PEARLESCENT: 2,
    MCT_MATTE: 3,
    MCT_METALS: 4,
    MCT_CHROME: 5,
    MCT_CHAMELEON: 6 // only available on Gen9 platforms
    MCT_NONE: 7 // if this is set, the vehicle doesn't use mod colors, it uses the regular color system
};



color: number of the color.

p3 seems to always be 0.

Syntax

vehicle.setModColor1(paintType, color, pearlescentColor);

Required Arguments

  • paintType: int
  • color: int
  • pearlescentColor: int

Return value

  • Undefined

Example

// todo

See also