Vehicle::setMod: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
Line 5: Line 5:
*'''modType:''' int
*'''modType:''' int
*'''modIndex:''' int
*'''modIndex:''' int
*'''customTires:''' Boolean
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
mp.events.addCommand('mod', (player: MpPlayer, fullText: string, a : string, b : string) => {
    player.vehicle.setMod(parseInt(a), parseInt(b));
});
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==

Revision as of 16:49, 14 January 2018

Vehicle Mods

Syntax

vehicle.setMod(modType, modIndex, customTires);

Required Arguments

  • modType: int
  • modIndex: int

Return value

  • Undefined

Example

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

See also

Vehicle Mods