From 2ea58114a579ba9bdae9137499c56f9be4e7d24e Mon Sep 17 00:00:00 2001
From: Infernalz <massimo.zv@hotmail.it>
Date: Sat, 1 Feb 2025 21:19:51 +0100
Subject: [PATCH] Fix wrong event

---
 server/consumables.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/consumables.lua b/server/consumables.lua
index 69df6db3..c90604a9 100644
--- a/server/consumables.lua
+++ b/server/consumables.lua
@@ -135,7 +135,7 @@ RegisterNetEvent('consumables:server:useHeavyArmor', function()
     if not Player then return end
     if not exports['qb-inventory']:RemoveItem(source, 'heavyarmor', 1, false, 'consumables:server:useHeavyArmor') then return end
     TriggerClientEvent('qb-inventory:client:ItemBox', source, QBCore.Shared.Items['heavyarmor'], 'remove')
-    TriggerClientEvent('hospital:server:SetArmor', source, 100)
+    TriggerClientEvent('hospital:client:SetArmor', source, 100)
     SetPedArmour(GetPlayerPed(source), 100)
 end)
 
@@ -144,7 +144,7 @@ RegisterNetEvent('consumables:server:useArmor', function()
     if not Player then return end
     if not exports['qb-inventory']:RemoveItem(source, 'armor', 1, false, 'consumables:server:useArmor') then return end
     TriggerClientEvent('qb-inventory:client:ItemBox', source, QBCore.Shared.Items['armor'], 'remove')
-    TriggerClientEvent('hospital:server:SetArmor', source, 75)
+    TriggerClientEvent('hospital:client:SetArmor', source, 75)
     SetPedArmour(GetPlayerPed(source), 75)
 end)