Skip to content

Commit

Permalink
Update bridge.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Demigod916 committed Jan 28, 2024
1 parent d80a49f commit 1b305c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/bridge.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function Bridge.removeItem(src, item, amount, slot)
end
return hasEnough
elseif framework == "qb" then
TriggerEvent("inventory:client:ItemBox", core?.Shared.Items[item], "remove", amount)
TriggerClientEvent("inventory:client:ItemBox", src, core?.Shared.Items[item], "remove", amount)
return Player.Functions.RemoveItem(item, amount, slot)
end
end
Expand Down Expand Up @@ -85,7 +85,7 @@ function Bridge.giveItem(src, item, amount, metadata, checkWeight)
Player.addInventoryItem(item, amount, metadata or {})
end
elseif framework == "qb" then
TriggerEvent("inventory:client:ItemBox", core?.Shared.Items[item], "add", amount)
TriggerClientEvent("inventory:client:ItemBox", src, core?.Shared.Items[item], "add", amount)
Player.Functions.AddItem(item, amount, false, metadata or {})
end
end
Expand Down

0 comments on commit 1b305c8

Please sign in to comment.