2025-01-10 16:36:20 -05:00
|
|
|
Inventory = Inventory or {}
|
|
|
|
|
|
2025-03-03 01:09:24 -05:00
|
|
|
---comment
|
|
|
|
|
---@param src number
|
|
|
|
|
---@param item string
|
|
|
|
|
---@param count number
|
|
|
|
|
---@param slot number
|
|
|
|
|
---@param metadata table
|
|
|
|
|
---@return boolean
|
2025-01-25 12:59:51 -05:00
|
|
|
Inventory.AddItem = function(src, item, count, slot, metadata)
|
2025-01-10 16:36:20 -05:00
|
|
|
return Framework.AddItem(src, item, count, slot, metadata)
|
|
|
|
|
end
|
|
|
|
|
|
2025-03-03 01:09:24 -05:00
|
|
|
---comment
|
|
|
|
|
---@param src number
|
|
|
|
|
---@param item string
|
|
|
|
|
---@param count number
|
|
|
|
|
---@param slot number
|
|
|
|
|
---@param metadata table
|
|
|
|
|
---@return boolean
|
2025-01-10 16:36:20 -05:00
|
|
|
Inventory.RemoveItem = function(src, item, count, slot, metadata)
|
2025-01-14 12:30:29 -06:00
|
|
|
item = type(item) == "table" and item.name or item
|
|
|
|
|
return Framework.RemoveItem(src, item, count, slot, metadata)
|
2025-01-10 16:36:20 -05:00
|
|
|
end
|
|
|
|
|
|
2025-03-03 01:09:24 -05:00
|
|
|
---comment
|
|
|
|
|
---@param item string
|
|
|
|
|
---@return boolean
|
2025-01-10 16:36:20 -05:00
|
|
|
Inventory.GetItemInfo = function(item)
|
|
|
|
|
return false, print("This Inventory Has Not Been Bridged For An Item Info Feature.")
|
|
|
|
|
end
|
|
|
|
|
|
2025-03-03 01:09:24 -05:00
|
|
|
---comment
|
|
|
|
|
---@param src number
|
|
|
|
|
---@param item string
|
|
|
|
|
---@param metadata table
|
|
|
|
|
---@return number
|
2025-01-10 16:36:20 -05:00
|
|
|
Inventory.GetItemCount = function(src, item, metadata)
|
|
|
|
|
return Framework.GetItemCount(src, item, metadata)
|
|
|
|
|
end
|
|
|
|
|
|
2025-03-03 01:09:24 -05:00
|
|
|
---comment
|
|
|
|
|
---@param src number
|
|
|
|
|
---@return table
|
2025-01-31 19:56:25 -05:00
|
|
|
Inventory.GetPlayerInventory = function(src)
|
2025-01-10 16:36:20 -05:00
|
|
|
return Framework.GetPlayerInventory(src)
|
|
|
|
|
end
|
|
|
|
|
|
2025-03-03 01:09:24 -05:00
|
|
|
---comment
|
|
|
|
|
---@param src number
|
|
|
|
|
---@param slot number
|
|
|
|
|
---@return table
|
2025-01-31 19:15:33 -05:00
|
|
|
Inventory.GetItemBySlot = function(src, slot)
|
|
|
|
|
return Framework.GetItemBySlot(src, slot)
|
|
|
|
|
end
|
|
|
|
|
|
2025-03-03 01:09:24 -05:00
|
|
|
---comment
|
|
|
|
|
---@param src number
|
|
|
|
|
---@param item string
|
|
|
|
|
---@param slot number
|
|
|
|
|
---@param metadata table
|
|
|
|
|
---@return boolean
|
2025-01-10 16:36:20 -05:00
|
|
|
Inventory.SetMetadata = function(src, item, slot, metadata)
|
|
|
|
|
return Framework.SetMetadata(src, item, slot, metadata)
|
|
|
|
|
end
|
|
|
|
|
|
2025-03-03 01:09:24 -05:00
|
|
|
---comment
|
|
|
|
|
---@param src number
|
|
|
|
|
---@param id string||number
|
|
|
|
|
---@param label string
|
|
|
|
|
---@param slots number
|
|
|
|
|
---@param weight number
|
|
|
|
|
---@param owner string
|
|
|
|
|
---@param groups table
|
|
|
|
|
---@param coords table
|
|
|
|
|
---@return boolean
|
2025-01-10 16:36:20 -05:00
|
|
|
Inventory.OpenStash = function(src, id, label, slots, weight, owner, groups, coords)
|
|
|
|
|
return false, print("This Inventory Has Not Been Bridged For A Stash Feature.")
|
|
|
|
|
end
|
|
|
|
|
|
2025-03-03 01:09:24 -05:00
|
|
|
---comment
|
|
|
|
|
---@param item string
|
|
|
|
|
---@return string
|
2025-01-10 16:36:20 -05:00
|
|
|
Inventory.GetImagePath = function(item)
|
|
|
|
|
return "https://avatars.githubusercontent.com/u/47620135"
|
|
|
|
|
end
|