diff --git a/client/main.lua b/client/main.lua index 0b22a28..af02821 100644 --- a/client/main.lua +++ b/client/main.lua @@ -789,9 +789,6 @@ CreateThread(function() if weapon then if armorDamaged and (bodypart == 'SPINE' or bodypart == 'UPPER_BODY') or weapon == Config.WeaponClasses['NOTHING'] then checkDamage = false -- Don't check damage if the it was a body shot and the weapon class isn't that strong - if armorDamaged then - TriggerServerEvent('hospital:server:SetArmor', GetPedArmour(ped)) - end end if checkDamage then @@ -813,6 +810,10 @@ CreateThread(function() CheckWeaponDamage(ped) end + if playerArmor ~= armor then + TriggerServerEvent('hospital:server:SetArmor', GetPedArmour(ped)) + end + playerHealth = health playerArmor = armor