pedr0fontoura / fivem-appearance

👀 A flexible player customization script for FiveM.
https://forum.cfx.re/t/release-fivem-appearance/2438537
MIT License
119 stars 71 forks source link

Hair Bugged for Peds when switching clothes / hands #36

Open waseem-h opened 2 years ago

waseem-h commented 2 years ago

When changing appearance of peds, the hair gets bugged and they disappear. The only way to fix it is to switch to some other ped and then choose the older ped again. But this means that I can't swap clothes on peds. Here's a demo: https://streamable.com/d2imfj I'm using the latest commit build

franfdezmorales commented 2 years ago

Hi! Tried with latest build release (1.2.1) and happens the same, im gonna check if its a script error or just a fivem/gta bug on latests artifacts. Demo testing: https://streamable.com/u92f5c

Could you tell me what artifacts are you using?

Ty in advance.

waseem-h commented 2 years ago

Hi! Tried with latest build release (1.2.1) and happens the same, im gonna check if its a script error or just a fivem/gta bug on latests artifacts. Demo testing: https://streamable.com/u92f5c

Could you tell me what artifacts are you using?

Ty in advance.

I'm using FXServer build: 5483 Doesn't look like a GTA bug since I can switch clothes using vMenu just fine

waseem-h commented 2 years ago

@franfdezmorales So I think I found out where the issue is. The above behavior does not happen if:

So it only happens when you change the ped and start changing the components right away. This could mean that something is either wrong when switching to the ped (it doesn't get set properly as GTA wants it) or maybe its because of saving the previous state of the player before opening the customization cause it somehow messes the ped switch component changes.

I haven't figured out how to fix it because the appearance_change_model callback seems to look fine. Maybe you have some more insights?

franfdezmorales commented 2 years ago

Hello, on these days i will review this issue. Ty for ur research!

Shotoki commented 1 year ago

Was there ever a resolution for this? i seem to be having a similiar issue, my vanilla peds are having this issue with the hair sticking like the above, however my custom peds are just having their entire heads messed up. I can link my bug report in QB if you need to see the issue.

Galaxyz7 commented 1 year ago

https://github.com/qbcore-framework/qb-clothing/issues/155#issuecomment-1657273076