Vehicle::setColor: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "{{Incomplete Functions}}")
 
No edit summary
Line 1: Line 1:
{{Incomplete Functions}}
This function used for set vehicle body color.
 
==Syntax==
<syntaxhighlight lang="javascript">
void vehicle.setColour(int colour1, int colour2);
</syntaxhighlight>
 
===Required Arguments===
*'''colour1:''' Primary color.
*'''colour2:''' Secondary color.
 
==Example==
no example, ez
 
<syntaxhighlight lang="javascript">
var theVehicle = mp.vehicles.new(418536135, new mp.Vector3(-17.460, 39.787, 71.318)); // spawn Infernus
theVehicle.setColour(0,0); // set black colour
</syntaxhighlight>
 
==See Also==
{{Vehicle_block}}

Revision as of 05:48, 24 October 2017

This function used for set vehicle body color.

Syntax

void vehicle.setColour(int colour1, int colour2);

Required Arguments

  • colour1: Primary color.
  • colour2: Secondary color.

Example

no example, ez

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

See Also

Template:Vehicle block