Vehicle::getMod

From RAGE Multiplayer Wiki
Revision as of 23:17, 26 April 2020 by Alienwave (talk | contribs)

In b944, there are 50 (0 - 49) mod types.

Returns -1 if the vehicle mod is stock

Syntax

vehicle.getMod(modType);

Required Arguments

  • modType: int

Return value

  • int

Example

const player = mp.players.local;

if (player.vehicle) {
    mp.gui.chat.push(player.vehicle.getMod(1).toString());
}

else mp.gui.chat.push("You need a car!");

See also