altv-issues
altv-issues copied to clipboard
Add getter for MaxDrawable and MaxTextureVariations
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
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
we can do that serverside since we have the values available there.
Maybe this issue solved?