Vehicle::getNeonLightsColour: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:


==Syntax==
==Syntax==
<pre>vehicle.getNeonLightsColor(r, g, b);</pre>
<pre>vehicle.getNeonLightsColour(r, g, b);</pre>


=== Required Arguments ===
=== Required Arguments ===
Line 14: Line 14:
==Example==
==Example==
<pre>
<pre>
// To do
let obj = mp.players.local.vehicle.getNeonLightsColour(1, 1, 1);
mp.gui.chat.push(`${obj.r} ${obj.g} ${obj.b}`);
</pre>
</pre>



Latest revision as of 04:38, 27 February 2019

Gets the color of the neon lights of the specified vehicle.

Syntax

vehicle.getNeonLightsColour(r, g, b);

Required Arguments

  • r: int
  • g: int
  • b: int

Return value

  • object: r, g, b

Example

let obj = mp.players.local.vehicle.getNeonLightsColour(1, 1, 1);
mp.gui.chat.push(`${obj.r} ${obj.g} ${obj.b}`);

See also