The Hungermod is Enable Or? Or is the Health Enable??
2 replies, posted
Hello and Welcome
I have script found on Workshop this is For Foods and Hunger Mode
The script is so..
[CODE]function ENT:Use(activator)
activator:SetHealth(activator:Health()+10)
self.Entity:Remove()
activator:EmitSound("eating_and_drinking/eating.wav", 50, 100)
end[/CODE]
This is over for Health i search this for Hunger
So or? I Scripting this so
[CODE]function ENT:Use(activator)
activator:SetHunger(activator:Hunger()+10)
self.Entity:Remove()
activator:EmitSound("eating_and_drinking/eating.wav", 50, 100)
end
[/CODE]
Is this Right?!
Or fail
I don't know what you're asking for, show us the addon you're talking about and try to explain the issue in more detail.
Im going to guess you want it to add DarkRP hunger instead of health.
I think its
activator:setDarkRPVar("Energy",activator:getDarkRPVar("Energy")+10)
But this is not tested
Sorry, you need to Log In to post a reply to this thread.