Перейти к содержанию

Vehicle::getNumMods

Материал из RAGE MP Wiki Archive

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

Syntax

<syntaxhighlight lang="javascript">vehicle.getNumMods(modType);</syntaxhighlight>

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