altv-issues icon indicating copy to clipboard operation
altv-issues copied to clipboard

Add getter for MaxDrawable and MaxTextureVariations

Open DatMayo opened this issue 2 years ago • 2 comments

Description of the problem

Currently you can use 2 natives (getNumberOfPedDrawableVariations() & getNumberOfPedTextureVariations()) to get the maximum number of variations. (Unfortunately these natives do not return the correct number of variations.)

Desired solution for the problem

As the native setters for these will become obsolete in the near future, it would be nice to have a serverside getter or at least a workling clientside getter.

Alternatives you considered

No response

Additional context

No response

Version

all

DatMayo avatar Aug 26 '22 08:08 DatMayo

Maybe some api like this:

  • alt.getClothesDrawableCount()

  • alt.getDlcClothesDrawableCount(dlcHash)

  • alt.getPropsDrawableCount()

  • alt.getDlcPropsDrawableCount(dlcHash)

  • alt.getClothTextureCount(index)

  • alt.getDlcClothTextureCount(dlcHash, index)

  • alt.getPropTextureCount(index)

  • alt.getDlcPropTextureCount(dlcHash, index)

According to DurtyFree the clothes.bin should contain all necessary info

deluvas1911 avatar Aug 26 '22 08:08 deluvas1911

we can do that serverside since we have the values available there.

FabianTerhorst avatar Aug 26 '22 08:08 FabianTerhorst

Maybe this issue solved?

pewpeu avatar Mar 29 '23 20:03 pewpeu