Vehicle::getMod

From RAGE Multiplayer Wiki

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

Returns 255 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