Skip to content

Unable to Hide Head Component (drawable -1) after SetPedHeadBlendData has been called #3648

Description

@Kuuzoo

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

  1. Download and start the head_issue resource
  2. Execute in F8 console: allowEmptyHeadDrawable true
  3. Execute: /headtest2
    → Head should disappear (working correctly - tests head hiding without blend data)
  4. Execute: /enablehead
    → Restores head visibility
  5. Execute: /headtest1
    → Sets HeadBlendData then tries to hide head - head remains visible (BUG)
  6. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriageNeeds a preliminary assessment to determine the urgency and required action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions