mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 01:08:54 +00:00
fix(es_extended/client/modules/actions): player health regeneration
Player health regenerating even when it's disabled. It needs to be re-setted on ped change.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user