Skip to content

Support latest es_extended (v1.13.1) in ps-hud #132

@RoccoRP

Description

@RoccoRP

Description:
This PR updates the ps-hud resource to be fully compatible with the latest es_extended version 1.13.1.

Changes include:

Adjusted how player data (hunger, thirst, money, job, etc.) is retrieved to match new es_extended API.

Fixed client event handling for player status updates.

Updated server callbacks to use new es_extended exports and methods.

Added missing periodic updates to send player stats to the NUI.

Refactored HUD initialization to ensure proper loading on resource start.

Why:
The new es_extended version introduces breaking changes in the player data structure and API, causing the current ps-hud version to not display stats correctly or fail to load. This update restores full functionality and improves performance.

Testing:
Tested on local server with es_extended v1.13.1 and confirmed that all HUD elements update correctly (health, hunger, thirst, money, vehicle info, buffs).

Notes:
Please review the changes carefully. Further optimizations can be made once upstream es_extended stabilizes.

Thank you for reviewing!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions