Vehicle::getModTextLabel: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
mNo edit summary
 
Line 1: Line 1:
Returns the text label of a mod type for a given vehicle<br><br>Use _GET_LABEL_TEXT to get the part name in the game's language
Returns the text label of a mod type for a given vehicle.<br><br>Use _GET_LABEL_TEXT to get the part name in the game's language.<br><br>See https://wiki.rage.mp/index.php?title=Vehicle::getNumMods to get the maximum number of mods (Usually 0 - numMods).
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.getModTextLabel(modType, modValue);</syntaxhighlight>
<syntaxhighlight lang="javascript">vehicle.getModTextLabel(modType, modIndex);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''modType:''' int
*'''modType:''' int
*'''modValue:''' int
*'''modIndex:''' int
===Return value===
===Return value===
*'''String'''
*'''String'''

Latest revision as of 16:49, 26 February 2019

Returns the text label of a mod type for a given vehicle.

Use _GET_LABEL_TEXT to get the part name in the game's language.

See https://wiki.rage.mp/index.php?title=Vehicle::getNumMods to get the maximum number of mods (Usually 0 - numMods).

Syntax

vehicle.getModTextLabel(modType, modIndex);

Required Arguments

  • modType: int
  • modIndex: int

Return value

  • String

Example

// todo

See also