Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -813,6 +810,10 @@ CreateThread(function()
CheckWeaponDamage(ped)
end

if playerArmor ~= armor then
TriggerServerEvent('hospital:server:SetArmor', GetPedArmour(ped))
end

playerHealth = health
playerArmor = armor

Expand Down