Vehicle::setColor: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "{{Incomplete Functions}}")
 
mNo edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Incomplete Functions}}
'''Function''': sets vehicle body color. ([[Vehicle_Colors|Vehicle colors]])
==Syntax==
<syntaxhighlight lang="javascript">
vehicle.setColor(primaryColor, secondaryColor);
</syntaxhighlight>
 
===Parameters===
*'''primaryColor:''' {{RageType|Int}}
*'''secondaryColor:''' {{RageType|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==
{{Vehicle_definition}}

Latest revision as of 08:03, 23 September 2018

Function: sets vehicle body color. (Vehicle colors)

Syntax

vehicle.setColor(primaryColor, secondaryColor);

Parameters

  • primaryColor: Int
  • secondaryColor: Int

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