Oh yeah, I forgot about the status lmao.
Put this at before the thread just like the message I edited above.
AddEventHandler("esx_status:onTick", function(status)
for _, v in pairs(status) do
if v.name == 'hunger' then hunger = v.percent
elseif v.name == 'thirst' then thirst = v.percent
elseif Config.useStress and v.name == 'stress' then stress = v.percent
end
end
end)
Just copy all the code from the message I sent first.