Skip to content

Commit

Permalink
fix(es_extended/client/modules/actions): player health recharge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Thekuca authored Dec 21, 2023
1 parent 9c84a67 commit 2b8cab2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions [core]/es_extended/client/modules/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ CreateThread(function()
ESX.SetPlayerData('ped', playerPed)
TriggerEvent('esx:playerPedChanged', playerPed)
TriggerServerEvent('esx:playerPedChanged', PedToNet(playerPed))
if Config.DisableHealthRegeneration then
SetPlayerHealthRechargeMultiplier(PlayerId(), 0.0)
end
end

if IsPedJumping(playerPed) and not isJumping then
Expand Down

0 comments on commit 2b8cab2

Please sign in to comment.