I have an OOC job on my dark rp server and would like disable hunger for this certain job but im not sure on how to go about this. I know there is a addmoney function but nothing like addhunger to maybe set there hunger back up every few seconds or so but there has to be a easier way.
You can do getDarkRPVar("Energy") to get their hunger and setDarkRPVar("Energy", 100) I also say they have a function to where if you're afk it'll disable your hunger mod I'd check and see if you could just set that function.
That's actually a really good idea, i haven't thought about that before. I was thinking maybe you could make a module to try and do this in darkrpmod. Ill give it a go
DarkRP/sv_player.lua at dc12eebbbdb85fc6c5c9f46d8a34b853645e2cb3..
https://wiki.darkrp.com/index.php/Hooks/Server/hungerUpdate
Sorry, you need to Log In to post a reply to this thread.