Stuyk / altv-athena

A Roleplay Framework for alt:V by Stuyk
https://athenaframework.com/
228 stars 149 forks source link

Fixed: Clothing update for drawable id > 127 #418

Closed ItsSpencer closed 1 year ago

ItsSpencer commented 1 year ago

Before: When the dlc hash is 0 and the drawable is > 127 the clothing could not be set.

Reason: The setDlcClothes-method only accepts drawable id's <= 127, because this is the limit for dlc clothing components. However, for the components of the base dlc, there can be drawable id's > 127.

After: If the dlc is 0 (base dlc), we use the setClothes-method instead. This method also accepts drawable id's > 127.