Vehicle::getNumMods

From RAGE Multiplayer Wiki
Revision as of 01:01, 26 January 2021 by KirillZver (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

See also