Vehicle::setColorRGB: Difference between revisions
(Created page with "This function used for set vehicle RGB body color. ==Syntax== <syntaxhighlight lang="javascript"> void vehicle.setColourRGB(int r1, int g1, int b1, int r2, int g2, int b2); <...") |
No edit summary |
||
| Line 1: | Line 1: | ||
This function used | This function used to get the vehicle RGB body color. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
Object vehicle.getColourRGB(int slot); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*''' | *'''slot:''' The color you want to get. (valid is 0 or 1) | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
let primaryColor = vehicle.getColourRGB(0); | |||
let secondaryColor = vehicle.getColourRGB(1); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Vehicle_block}} | {{Vehicle_block}} | ||
Revision as of 17:31, 23 September 2017
This function used to get the vehicle RGB body color.
Syntax
Object vehicle.getColourRGB(int slot);
Required Arguments
- slot: The color you want to get. (valid is 0 or 1)
Example
let primaryColor = vehicle.getColourRGB(0);
let secondaryColor = vehicle.getColourRGB(1);