CanCarryItem checks on additem

This commit is contained in:
MrNewb committed 2025-08-12 18:08:49 -04:00
1 parent af33909794
commit e30dceb540
3 files changed
+3

No files matched your search

@@ -14,6 +14,7 @@ Inventory.Stashes = Inventory.Stashes or {}
---@param metadata table
---@return boolean
Inventory.AddItem = function(src, item, count, slot, metadata)
if not tgiann:CanCarryItem(src, item, count) then return false end
TriggerClientEvent("community_bridge:client:inventory:updateInventory", src, {action = "add", item = item, count = count, slot = slot, metadata = metadata})
return tgiann:AddItem(src, item, count, slot, metadata, false)
end