Oh yeah, I forgot about the status lmao.
Put this at before the thread just like the message I edited above.
AddEventHandler("esx_status:onTick", function(status)
for _, v in pairs(status) do
if v.name == 'hunger' then hunger = v.percent
elseif v.name == 'thirst' then thirst = v.percent
elseif Config.useStress and v.name == 'stress' then stress = v.percent
end
end
end)
Just copy all the code from the message I sent first.
Hi mate! I got the version with the hunger en thirst icon but somethimes when players are loading in the server they are dead because they have somethimes nog hunger en thirst or like 5% how can i fix this.
Thats strange because i update the esx_status en add youre hud and than this problem apears. so it is the hud or the esx_status that you suggest to download! Thanks for replaying to me and i hope you found something!
Well mate i have fixed it but now inhave another problem with it. When people go out game and come back like 6 hours later their food and water is gone only water has like 15% left. Can i fix this? Greetz