dobrograd-13-06-2022/garrysmod/gamemodes/darkrp/gamemode/modules/hungermod/sv_hungermod.lua
Jonny_Bro (Nikita) e4d5311906 first commit
2023-11-16 15:01:19 +05:00

7 lines
223 B
Lua

local function HMThink()
octolib.func.throttle(player.GetAll(), 10, 0.2, function(v)
if not IsValid(v) or not v:Alive() or v:IsGhost() then return end
v:hungerUpdate()
end)
end
timer.Create('HMThink', 10, 0, HMThink)