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

Player::getNumberOfPropTextureVariations

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

Need to check behavior when drawableId = -1

- Doofy.Ass
Why this function doesn't work and return nill value?
GET_NUMBER_OF_Player_PROP_TEXTURE_VARIATIONS(PLAYER.PLAYER_Player_ID(), 0, 5)

tick: scripts/addins/menu_execute.lua:51: attempt to call field 'GET_NUMBER_OF_Player_PROP_TEXTURE_VARIATIONS' (a nil value)


List of component/props ID
gtaxscripting.blogspot.com/2016/04/gta-v-peds-component-and-props.html

Syntax

<syntaxhighlight lang="javascript">player.getNumberOfPropTextureVariations(propId, drawableId);</syntaxhighlight>

Required Arguments

  • propId: int
  • drawableId: int

Return value

  • int

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also