[HELP] how to disable Auto HP Regeneration

i need a specific explain

how to disable Auto HP Regeneration

1 Like

Use this native.

https://runtime.fivem.net/doc/natives/#n_PLAYER

You probably mean those : https://runtime.fivem.net/doc/natives/#_0x5DB660B38DD98A31 and https://runtime.fivem.net/doc/natives/#_0xC388A0F065F5BC34

1 Like

Yes bad copy/paste lol :+1:

can you tell me what to do in this page because i really didn t know what to do

i know its weird i have a server and i don t know what to do here but one another question how to make a bool file?

SetPlayerHealthRechargeMultiplier(GetPlayerPed(-1),0.0)

I just don’t remember if it should be called in a loop every tick sorry, i don’t think but you can make some test.Or wait for a best replie. Make a bool file ? Do you mean variable ?

1 Like

will idk what is the bool file does so idk i just want to stop the auto regeneration of health

Citizen.CreateThread(function()
  while true do
    Citizen.Wait(100)
    SetPlayerHealthRechargeMultiplier(PlayerId(), 0)
  end
end)

where exactly to put this scrpit? does it have an specific file?

put in whatever client sided script you want

i already had this script into my survival.lua and its still auto regeneration is enabled

Hmm weird i use vrp aswell and it works fine with the survival.lua for me

is that because i am the founder?

Wut ? wdym you’re the founder

i mean i am the person who created the server

Maybe you gave yourself the god mode group

ohhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

how dumb am i

LOOOOOOOOOOOOOOOOOOOOOOOL

in ex_extended clien main.lua found this line

if Config.DisableHealthRegeneration then
SetPlayerHealthRechargeMultiplier(playerId, 0.0)
end

and change to this and works perfect
Citizen.CreateThread(function()
while true do Citizen.Wait(0)
if Config.DisableHealthRegeneration then
SetPlayerHealthRechargeMultiplier(playerId, 0.0)
end
end
end)