Skip to content

Commit

Permalink
Merge pull request #1277 from Thekuca/dev
Browse files Browse the repository at this point in the history
fix(es_extended/client/modules/actions): player health regeneration
  • Loading branch information
Thekuca authored Dec 21, 2023
2 parents ed9dcda + 5b68454 commit 1c530ac
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 1c530ac

Please sign in to comment.