Vehicle::getPaint: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
(Undo revision 18054 by Paradox (talk))
Tags: Replaced Undo
 
Line 1: Line 1:
 
{{Incomplete Functions}}
==Syntax==
<pre>vehicle.getPaint(id);</pre>
=== Required Arguments ===
*'''id:''' int
 
(0 - Primary Color, 1 - Secondary Color)
===Return value===
*'''integer:''' color
 
==Example==
<pre>
let primaryColor = player.vehicle.getPaint(0)
let secondaryColor = player.vehicle.getPaint(1)
 
// If the vehicle primary color was black the following would return 0
console.log(primaryColor)
</pre>
 
==See also==
{{Vehicle_function_c}}
[[Category:Clientside API]]
[[Category:TODO: Example]]

Latest revision as of 13:22, 1 September 2019

This page is Incomplete.