Vehicle::getNumMods: Difference between revisions

From RAGE Multiplayer Wiki
mNo edit summary
No edit summary
 
Line 7: Line 7:
*'''int'''
*'''int'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
{{ClientsideCode|
// todo
<pre>
</syntaxhighlight>
mp.players.local.vehicle.getNumMods(48); // get the number of vinyls for the car in which the player sits
</pre>
}}
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 01:01, 26 January 2021

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