Skip to content

Commit

Permalink
fix notif
Browse files Browse the repository at this point in the history
  • Loading branch information
Kedrihan committed Jul 19, 2024
1 parent e02ff79 commit 9a7a9b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/[soz]/soz-inventory/server/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 9a7a9b3

Please sign in to comment.