Update client.lua
This commit is contained in:
1 parent
e706154191
commit
2628111978
1 file changed
+7
-1
@@ -17,6 +17,12 @@ Inventory.GetItemInfo = function(item)
|
||||
return repackedTable
|
||||
end
|
||||
|
||||
Inventory.HasItem = function(item)
|
||||
local itemList = codem:GetItemList()
|
||||
local itemCheck = itemList and itemList[item] ~= nil
|
||||
return itemCheck
|
||||
end
|
||||
|
||||
Inventory.GetImagePath = function(item)
|
||||
local imagePath = string.format("nui://codem-inventory/html/images/%s.png", item)
|
||||
return imagePath or "https://avatars.githubusercontent.com/u/47620135"
|
||||
@@ -38,4 +44,4 @@ Inventory.GetPlayerInventory = function()
|
||||
})
|
||||
end
|
||||
return items
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user