Vehicle::getExtraColours: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(2 intermediate revisions by one other user not shown)
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
let obj = mp.players.local.vehicle.getExtraColours(1, 1);
mp.gui.chat.push(`${obj.pearlescentColor} ${obj.wheelColor}`);
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_definition_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 11:37, 9 May 2024

Syntax

vehicle.getExtraColours(pearlescentColor, wheelColor);

Required Arguments

  • pearlescentColor: int
  • wheelColor: int

Return value

  • object: pearlescentColor, wheelColor

Example

let obj = mp.players.local.vehicle.getExtraColours(1, 1);
mp.gui.chat.push(`${obj.pearlescentColor} ${obj.wheelColor}`);

See also