Difference between revisions of "GET NUMBER OF CHAR TEXTURE VARIATIONS"

From GTAMods Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:
  
 
Gets all available texture variations in current component (parameter 2) and for current [[GET_CHAR_DRAWABLE_VARIATION|drawable variation]] (parameter 3).
 
Gets all available texture variations in current component (parameter 2) and for current [[GET_CHAR_DRAWABLE_VARIATION|drawable variation]] (parameter 3).
 +
 +
Example usage:
 +
 +
int CurrentHead = GET_CHAR_DRAWABLE_VARIATION(GetPlayerPed(), 0);<br/>
 +
int MaxHeadTex = GET_NUMBER_OF_CHAR_TEXTURE_VARIATIONS(GetPlayerPed(), 0, CurrentHead);

Latest revision as of 13:58, 14 October 2017

GET_NUMBER_OF_CHAR_TEXTURE_VARIATIONS
Number of parameters: 3
Parameter #TypeDescription
1.integerPed
2.integerComponent id
3.integerVariaton
Return value:
TypeDescription
None


Gets all available texture variations in current component (parameter 2) and for current drawable variation (parameter 3).

Example usage:

int CurrentHead = GET_CHAR_DRAWABLE_VARIATION(GetPlayerPed(), 0);
int MaxHeadTex = GET_NUMBER_OF_CHAR_TEXTURE_VARIATIONS(GetPlayerPed(), 0, CurrentHead);