From 9a7a9b3c94315e6fe249ef31c7f8f42e20452bb4 Mon Sep 17 00:00:00 2001 From: Kedrihan Date: Fri, 19 Jul 2024 18:05:59 +0200 Subject: [PATCH] fix notif --- resources/[soz]/soz-inventory/server/events.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/[soz]/soz-inventory/server/events.lua b/resources/[soz]/soz-inventory/server/events.lua index e89c33977a..2d6d43ea66 100644 --- a/resources/[soz]/soz-inventory/server/events.lua +++ b/resources/[soz]/soz-inventory/server/events.lua @@ -56,7 +56,7 @@ RegisterServerEvent("inventory:server:bin-vandalism", function(invID, ctx) end) QBCore.Functions.CreateCallback("inventory:server:TransfertItem", - function(source, cb, inventorySource, inventoryTarget, item, amount, metadata, slot, targetSlot, manualFilter) + function(source, cb, inventorySource, inventoryTarget, item, amount, metadata, slot, targetSlot, manualFilter, inverse) Inventory.TransfertItem(source, inventorySource, inventoryTarget, item, amount, metadata, slot, function(success, reason) local sourceInv = Inventory(inventorySource) local targetInv = Inventory(inventoryTarget) @@ -72,7 +72,7 @@ QBCore.Functions.CreateCallback("inventory:server:TransfertItem", coord1.z, }); end - if sourceInv.id ~= targetInv.id then + if sourceInv.id ~= targetInv.id and tonumber(source) ~= tonumber(sourceInv.id) then TriggerClientEvent("soz-core:client:notification:draw", sourceInv.id, string.format("On vous a pris ~r~%s %s", amount, QBCore.Shared.Items[item].label)) end