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

Vehicle::getNumMods

Материал из RAGE MP Wiki Archive
Версия от 01:01, 26 января 2021; imported>KirillZver
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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