Where can I adjust when one has no more food when one dies? if my in-game display says there is no food, you are dead within 2 seconds … you have no more time to react …
Thanks for the answer <3
Where can I adjust when one has no more food when one dies? if my in-game display says there is no food, you are dead within 2 seconds … you have no more time to react …
Thanks for the answer <3
Hey !
That depends on what script you use to handle the hunger/thirst aspect of you server.
If you’re using ESX as the base framework for your server (as I am), the resource that deals with this is
[ esx_basicneed ]. You can add the modification that you whant in the file
[ \resources[esx_addons]\esx_basicneeds\client\main.lua ].
The code lines that lower your life then kill you when you are starving are the following (line 47 - 85) :
You can tweak the code and add some line to do what you want here.
(line 69 to 78 are not present in the intial script I added them so don’t take them into account)
No, but they are brilliant! Adding them myself.
Thanks
I wrote them to help someone on the forum 1 or 2 weeks ago, but in the end I keept them too x)
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.