What happened?
After calling SetPedHeadBlendData() on a freemode ped, subsequent calls to SetPedComponentVariation(ped, 0, -1, 0, 0) fail to visually hide the head component, even with allowEmptyHeadDrawable true set. The native appears to execute successfully and GetPedDrawableVariation() returns -1, but the head remains visible. Head hiding works normally before any HeadBlendData is set.
Expected result
SetPedComponentVariation(PlayerPedId(), 0, -1, 0, 0) should hide the head component regardless of whether HeadBlendData has been previously set, as long as allowEmptyHeadDrawable true is enabled.
Reproduction steps
- Download and start the
head_issue resource
- Execute in F8 console:
allowEmptyHeadDrawable true
- Execute:
/headtest2
→ Head should disappear (working correctly - tests head hiding without blend data)
- Execute:
/enablehead
→ Restores head visibility
- Execute:
/headtest1
→ Sets HeadBlendData then tries to hide head - head remains visible (BUG)
- Execute:
/debugheadstatus
→ Confirms head component is set to -1 but head remains visually present
Importancy
Slight inconvenience
Area(s)
FiveM, Natives
Specific version(s)
FiveM Ver. 20139/beta, Server b18443/Win
Additional information
No response
What happened?
After calling
SetPedHeadBlendData()on a freemode ped, subsequent calls toSetPedComponentVariation(ped, 0, -1, 0, 0)fail to visually hide the head component, even withallowEmptyHeadDrawable trueset. The native appears to execute successfully andGetPedDrawableVariation()returns -1, but the head remains visible. Head hiding works normally before any HeadBlendData is set.Expected result
SetPedComponentVariation(PlayerPedId(), 0, -1, 0, 0)should hide the head component regardless of whether HeadBlendData has been previously set, as long asallowEmptyHeadDrawable trueis enabled.Reproduction steps
head_issueresourceallowEmptyHeadDrawable true/headtest2→ Head should disappear (working correctly - tests head hiding without blend data)
/enablehead→ Restores head visibility
/headtest1→ Sets HeadBlendData then tries to hide head - head remains visible (BUG)
/debugheadstatus→ Confirms head component is set to -1 but head remains visually present
Importancy
Slight inconvenience
Area(s)
FiveM, Natives
Specific version(s)
FiveM Ver. 20139/beta, Server b18443/Win
Additional information
No response