Vehicle::getExtraColours: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
*'''wheelColor:''' int
*'''wheelColor:''' int
===Return value===
===Return value===
*'''void'''
*'''object:''' pearlescentColor, wheelColor
==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