Skip to main content

Vehicle::getNumMods

Returns how many possible mods a vehicle has for a given mod type.

Syntax​

vehicle.getNumMods(modType);

Required Arguments​

  • modType: int

Return value​

  • int

Example​

Client-Side

mp.players.local.vehicle.getNumMods(48); // get the number of vinyls for the car in which the player sits