Vehicle::setColor: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 1: Line 1:
'''Function''': sets vehicle body color.
'''Function''': sets vehicle body color. ([[Vehicle_Colors|Vehicle colors]])
 
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
Line 6: Line 5:
</syntaxhighlight>  
</syntaxhighlight>  


===Required Arguments===
===Parameters===
*'''color1:''' Primary color.
*'''color1:''' Primary color.
*'''color2:''' Secondary color.
*'''color2:''' Secondary color.

Revision as of 13:59, 28 December 2017

Function: sets vehicle body color. (Vehicle colors)

Syntax

void vehicle.setColor(int color1, int color2);

Parameters

  • color1: Primary color.
  • color2: Secondary color.

Example

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

See Also