Vehicle::getNeonLightsColour: Difference between revisions

From RAGE Multiplayer Wiki
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
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