diff --git a/client/job.lua b/client/job.lua index 90993c9..c3cb583 100644 --- a/client/job.lua +++ b/client/job.lua @@ -120,7 +120,6 @@ RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function() QBCore.Functions.GetPlayerData(function(PlayerData) PlayerJob = PlayerData.job onDuty = PlayerData.job.onduty - SetPedArmour(PlayerPedId(), PlayerData.metadata['armor']) if (not PlayerData.metadata['inlaststand'] and PlayerData.metadata['isdead']) then deathTime = Config.ReviveInterval OnDeath() diff --git a/client/main.lua b/client/main.lua index 0b22a28..73966c2 100644 --- a/client/main.lua +++ b/client/main.lua @@ -696,7 +696,6 @@ RegisterNetEvent('QBCore:Client:OnPlayerUnload', function() local ped = PlayerPedId() TriggerServerEvent('hospital:server:SetDeathStatus', false) TriggerServerEvent('hospital:server:SetLaststandStatus', false) - TriggerServerEvent('hospital:server:SetArmor', GetPedArmour(ped)) if bedOccupying then TriggerServerEvent('hospital:server:LeaveBed', bedOccupying, hospitalLocation) end @@ -789,9 +788,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 diff --git a/server/main.lua b/server/main.lua index e56b4e0..67cfca9 100644 --- a/server/main.lua +++ b/server/main.lua @@ -141,14 +141,6 @@ RegisterNetEvent('hospital:server:SetLaststandStatus', function(bool) end end) -RegisterNetEvent('hospital:server:SetArmor', function(amount) - local src = source - local Player = QBCore.Functions.GetPlayer(src) - if Player then - Player.Functions.SetMetaData('armor', amount) - end -end) - RegisterNetEvent('hospital:server:TreatWounds', function(playerId) local src = source local Player = QBCore.Functions.GetPlayer(src)