2025-01-13 14:28:09 -05:00
|
|
|
Inventory = Inventory or {}
|
|
|
|
|
|
2025-04-12 02:31:47 -04:00
|
|
|
---This will fallback to framework add item functions when an inventory does not have the specifiec function.
|
2025-03-03 01:09:24 -05:00
|
|
|
---@param item string
|
|
|
|
|
---@return table
|
2025-01-13 14:28:09 -05:00
|
|
|
Inventory.GetItemInfo = function(item)
|
|
|
|
|
return Framework.GetItemInfo(item)
|
|
|
|
|
end
|
|
|
|
|
|
2025-04-12 02:31:47 -04:00
|
|
|
---This will fallback to framework add item functions when an inventory does not have the specifiec function.
|
2025-03-03 01:09:24 -05:00
|
|
|
---@param item string
|
|
|
|
|
---@return boolean
|
2025-02-17 12:34:10 -05:00
|
|
|
Inventory.HasItem = function(item)
|
|
|
|
|
return Framework.HasItem(item)
|
|
|
|
|
end
|
|
|
|
|
|
2025-04-12 02:31:47 -04:00
|
|
|
---This will fallback to framework add item functions when an inventory does not have the specifiec function.
|
|
|
|
|
---@param item string
|
|
|
|
|
---@return number
|
2025-04-07 14:37:22 -04:00
|
|
|
Inventory.GetItemCount = function(item)
|
|
|
|
|
return Framework.GetItemCount(item)
|
|
|
|
|
end
|
|
|
|
|
|
2025-04-12 02:31:47 -04:00
|
|
|
---This will provide a image of the community bridge logo if the inventory isnt bridged for the specific path.
|
2025-03-03 01:09:24 -05:00
|
|
|
---@param item string
|
|
|
|
|
---@return string
|
2025-01-13 14:28:09 -05:00
|
|
|
Inventory.GetImagePath = function(item)
|
|
|
|
|
return "https://avatars.githubusercontent.com/u/47620135"
|
2025-04-16 05:24:03 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
Inventory.StripPNG = function(item)
|
|
|
|
|
if string.find(item, ".png") then
|
|
|
|
|
item = string.gsub(item, ".png", "")
|
|
|
|
|
end
|
|
|
|
|
return item
|
2025-04-12 02:31:47 -04:00
|
|
|
end
|