So, yesterday I added a new hud (KL_HUD) and somehow all the players when they have less than 50% of health it starts regenerating 4 by 4 until 50%, I already tried other hud, I tried to reinstall the server but the problems still, can you guys help?
1 Like
put this lines in any client side script, it will disable auto health recharge
Citizen.CreateThread(function()
while true do
Citizen.Wait(1)
SetPlayerHealthRechargeMultiplier(PlayerId(), 0.0)
end
end)
while true do
local Sleep = true
if Config.DisableHealthRegeneration then
Sleep = false
SetPlayerHealthRechargeMultiplier(PlayerId, 0.0)
end
I have this code inside es_extended
well, it worked thanks a lot bro!!
1 Like