-
Notifications
You must be signed in to change notification settings - Fork 177
Description
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!