fixes init file, remove old code, add template for core_inventory

This commit is contained in:
qwezert committed 2025-01-09 19:06:33 +02:00
1 parent 646b669881
commit 99f7f4eb11
5 files changed
+37 -42

No files matched your search

+9 -9
View File
@@ -1,33 +1,33 @@
DefaultInventory = DefaultInventory or {}
Inventory = Inventory or {}
DefaultInventory.AddItem = function(src, item, count, slot, metadata)
Inventory.AddItem = function(src, item, count, slot, metadata)
return Framework.AddItem(src, item, count, slot, metadata)
end
DefaultInventory.RemoveItem = function(src, item, count, slot, metadata)
Inventory.RemoveItem = function(src, item, count, slot, metadata)
return Framework.RemoveItem(src, item, count, slot, metadata)
end
DefaultInventory.GetItemInfo = function(item)
Inventory.GetItemInfo = function(item)
return false, print("This Inventory Has Not Been Bridged For An Item Info Feature.")
end
DefaultInventory.GetItemCount = function(src, item, metadata)
Inventory.GetItemCount = function(src, item, metadata)
return Framework.GetItemCount(src, item, metadata)
end
DefaultInventory.GetInventoryItems = function(src)
Inventory.GetInventoryItems = function(src)
return Framework.GetPlayerInventory(src)
end
DefaultInventory.SetMetadata = function(src, item, slot, metadata)
Inventory.SetMetadata = function(src, item, slot, metadata)
return Framework.SetMetadata(src, item, slot, metadata)
end
DefaultInventory.OpenStash = function(src, id, label, slots, weight, owner, groups, coords)
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
DefaultInventory.GetImagePath = function(item)
Inventory.GetImagePath = function(item)
return "https://avatars.githubusercontent.com/u/47620135"
end