Update client.lua
This commit is contained in:
1 parent
3542aff067
commit
665e6be22f
1 file changed
+5
-1
@@ -17,6 +17,10 @@ Inventory.GetItemInfo = function(item)
|
|||||||
return repackedTable or {}
|
return repackedTable or {}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Inventory.HasItem = function(item)
|
||||||
|
return origin:HasItem(item)
|
||||||
|
end
|
||||||
|
|
||||||
Inventory.GetImagePath = function(item)
|
Inventory.GetImagePath = function(item)
|
||||||
local file = LoadResourceFile("origen_inventory", string.format("html/images/%s.png", item))
|
local file = LoadResourceFile("origen_inventory", string.format("html/images/%s.png", item))
|
||||||
local imagePath = file and string.format("nui://origen_inventory/html/images/%s.png", item)
|
local imagePath = file and string.format("nui://origen_inventory/html/images/%s.png", item)
|
||||||
@@ -39,4 +43,4 @@ Inventory.GetPlayerInventory = function()
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
return items
|
return items
|
||||||
end
|
end
|
||||||
Reference in new issue
Block a user