update to last version
This commit is contained in:
1 parent
0c7106a1c4
commit
b1850cd24e
5 files changed
+12
-26
No files matched your search
@@ -35,8 +35,6 @@ end
|
|||||||
|
|
||||||
--TODO: Create a way to overide functions or create a new functions for module
|
--TODO: Create a way to overide functions or create a new functions for module
|
||||||
|
|
||||||
local DefaultInventory = Require("components/modules_defaults/inventory/defaults.lua")
|
|
||||||
|
|
||||||
Bridge.RegisterModule("Framework", Framework)
|
Bridge.RegisterModule("Framework", Framework)
|
||||||
Bridge.RegisterModule("Inventory", Inventory, DefaultInventory)
|
Bridge.RegisterModule("Inventory", Inventory, DefaultInventory)
|
||||||
Bridge.RegisterModule("Notify", Notify)
|
Bridge.RegisterModule("Notify", Notify)
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
Inventory = Inventory or {}
|
DefaultInventory = DefaultInventory or {}
|
||||||
|
|
||||||
Inventory.GetItemInfo = function(item)
|
DefaultInventory.GetItemInfo = function(item)
|
||||||
return Framework.GetItemInfo(item)
|
return Framework.GetItemInfo(item)
|
||||||
end
|
end
|
||||||
|
|
||||||
Inventory.GetImagePath = function(item)
|
DefaultInventory.GetImagePath = function(item)
|
||||||
return "https://avatars.githubusercontent.com/u/47620135"
|
return "https://avatars.githubusercontent.com/u/47620135"
|
||||||
end
|
end
|
||||||
@@ -1,33 +1,33 @@
|
|||||||
Inventory = Inventory or {}
|
DefaultInventory = DefaultInventory or {}
|
||||||
|
|
||||||
Inventory.AddItem = function(src, item, count, slot, metadata)
|
DefaultInventory.AddItem = function(src, item, count, slot, metadata)
|
||||||
return Framework.AddItem(src, item, count, slot, metadata)
|
return Framework.AddItem(src, item, count, slot, metadata)
|
||||||
end
|
end
|
||||||
|
|
||||||
Inventory.RemoveItem = function(src, item, count, slot, metadata)
|
DefaultInventory.RemoveItem = function(src, item, count, slot, metadata)
|
||||||
return Framework.RemoveItem(src, item, count, slot, metadata)
|
return Framework.RemoveItem(src, item, count, slot, metadata)
|
||||||
end
|
end
|
||||||
|
|
||||||
Inventory.GetItemInfo = function(item)
|
DefaultInventory.GetItemInfo = function(item)
|
||||||
return false, Print.Error("This Inventory Has Not Been Bridged For An Item Info Feature.")
|
return false, Print.Error("This Inventory Has Not Been Bridged For An Item Info Feature.")
|
||||||
end
|
end
|
||||||
|
|
||||||
Inventory.GetItemCount = function(src, item, metadata)
|
DefaultInventory.GetItemCount = function(src, item, metadata)
|
||||||
return Framework.GetItemCount(src, item, metadata)
|
return Framework.GetItemCount(src, item, metadata)
|
||||||
end
|
end
|
||||||
|
|
||||||
Inventory.GetInventoryItems = function(src)
|
DefaultInventory.GetInventoryItems = function(src)
|
||||||
return Framework.GetPlayerInventory(src)
|
return Framework.GetPlayerInventory(src)
|
||||||
end
|
end
|
||||||
|
|
||||||
Inventory.SetMetadata = function(src, item, slot, metadata)
|
DefaultInventory.SetMetadata = function(src, item, slot, metadata)
|
||||||
return Framework.SetMetadata(src, item, slot, metadata)
|
return Framework.SetMetadata(src, item, slot, metadata)
|
||||||
end
|
end
|
||||||
|
|
||||||
Inventory.OpenStash = function(src, id, label, slots, weight, owner, groups, coords)
|
DefaultInventory.OpenStash = function(src, id, label, slots, weight, owner, groups, coords)
|
||||||
return false, Print.Error("This Inventory Has Not Been Bridged For A Stash Feature.")
|
return false, Print.Error("This Inventory Has Not Been Bridged For A Stash Feature.")
|
||||||
end
|
end
|
||||||
|
|
||||||
Inventory.GetImagePath = function(item)
|
DefaultInventory.GetImagePath = function(item)
|
||||||
return "https://avatars.githubusercontent.com/u/47620135"
|
return "https://avatars.githubusercontent.com/u/47620135"
|
||||||
end
|
end
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
if GetResourceState('core_inventory') ~= 'started' then return end
|
|
||||||
|
|
||||||
Inventory = Inventory or {}
|
|
||||||
Inventory.TestText = function()
|
|
||||||
return 'test client'
|
|
||||||
end
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
if GetResourceState('core_inventory') ~= 'started' then return end
|
|
||||||
|
|
||||||
Inventory = Inventory or {}
|
|
||||||
Inventory.TestText = function()
|
|
||||||
return 'test'
|
|
||||||
end
|
|
||||||
Reference in new issue
Block a user