Files
community_bridge/modules/Inventory/_default/server.lua
T

33 lines
1.0 KiB
Lua
Raw Normal View History

Inventory = Inventory or {}
2025-01-09 03:55:10 -05:00
Inventory.AddItem = function(src, item, count, slot, metadata)
2025-01-09 03:55:10 -05:00
return Framework.AddItem(src, item, count, slot, metadata)
end
Inventory.RemoveItem = function(src, item, count, slot, metadata)
2025-01-09 03:55:10 -05:00
return Framework.RemoveItem(src, item, count, slot, metadata)
end
Inventory.GetItemInfo = function(item)
return false, print("This Inventory Has Not Been Bridged For An Item Info Feature.")
2025-01-09 03:55:10 -05:00
end
Inventory.GetItemCount = function(src, item, metadata)
2025-01-09 03:55:10 -05:00
return Framework.GetItemCount(src, item, metadata)
end
Inventory.GetInventoryItems = function(src)
2025-01-09 03:55:10 -05:00
return Framework.GetPlayerInventory(src)
end
Inventory.SetMetadata = function(src, item, slot, metadata)
2025-01-09 03:55:10 -05:00
return Framework.SetMetadata(src, item, slot, metadata)
end
Inventory.OpenStash = function(src, id, label, slots, weight, owner, groups, coords)
return false, print("This Inventory Has Not Been Bridged For A Stash Feature.")
2025-01-09 03:55:10 -05:00
end
Inventory.GetImagePath = function(item)
2025-01-09 03:55:10 -05:00
return "https://avatars.githubusercontent.com/u/47620135"
end