Vehicle::setMod: Difference between revisions

From RAGE Multiplayer Wiki
m (Vehicle mods already listed above)
No edit summary
Line 1: Line 1:
'''[[Vehicle_Mods|Vehicle Mods]]'''
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.setMod(modType, modIndex);</syntaxhighlight>
<syntaxhighlight lang="javascript">vehicle.setMod(modType, modIndex);</syntaxhighlight>
Line 15: Line 14:
</syntaxhighlight>
</syntaxhighlight>


==Vehicle Mods Info==
'''[[Vehicle_Mods|Vehicle Mods]]'''
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]

Revision as of 04:50, 1 April 2018

Syntax

vehicle.setMod(modType, modIndex);

Required Arguments

  • modType: int
  • modIndex: int

Return value

  • Undefined

Example

mp.events.addCommand('mod', (player, fullText, a , b) => {
    player.vehicle.setMod(parseInt(a), parseInt(b));
});

Vehicle Mods Info

Vehicle Mods

See also