Esx_basicneed problem. Food going up!?

Hey, I have a problem with my food in my server. It’s really weird, it’s going up and I don’t know why. I have tried removing and getting a new version of esx_besicneeds and status, that does not help. So I am really stuck here would be great if someone has an idea of what can cause this problem. Thanks in advance!

Video of problem:
Video

So, the issue is something calling esx_status:add in a loop that runs every 5 seconds (5000ms). Since you reinstalled esx_status and esx_basicneeds, it’s not these. Open your entire server resources folder in your code editor and search all files for esx_status:add. When you find a script that is calling this, check the value being passed to hunger/thirst. If hunger is 40000 or thirst is 20000, it could be the problem one. Check if it is inside a loop. If not, check if that function or event is being CALLED inside a loop. Because somewhere in your scripts, that is what’s happening. Good luck!

1 Like

Oh yeah, thanks mate. One of my drug scripts had esx_status:add with hunger 40000 and thirst 20000. I removed it and now it works fine. Thanks again, I would have been stuck if you didn’t stop by. THX!!!

//Simon

1 Like

Easy mate, glad I could help!
If you want drugs to have an effect on your hunger/thirst and are having troubles not having it loop and act up, feel free to post your drug script, or the part that had the problem, and I can take a peak. Otherwise, no sweat & best of luck with the rest of your server! :spades:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.