Update client.lua
This commit is contained in:
1 parent
665e6be22f
commit
0a141fe2c7
1 file changed
+7
-1
@@ -17,6 +17,12 @@ Inventory.GetItemInfo = function(item)
|
||||
return repackedTable
|
||||
end
|
||||
|
||||
Inventory.HasItem = function(item)
|
||||
local itemCount = ox_inventory:Search('count', item)
|
||||
local hasItem = itemCount ~= 0
|
||||
return hasItem
|
||||
end
|
||||
|
||||
Inventory.GetImagePath = function(item)
|
||||
local file = LoadResourceFile("ox_inventory", string.format("web/images/%s.png", item))
|
||||
local imagePath = file and string.format("nui://ox_inventory/web/images/%s.png", item)
|
||||
@@ -27,4 +33,4 @@ Inventory.GetPlayerInventory = function()
|
||||
return exports.ox_inventory:GetPlayerItems()
|
||||
end
|
||||
|
||||
--Bridge.RegisterModule("Inventory", Inventory)
|
||||
--Bridge.RegisterModule("Inventory", Inventory)
|
||||
Reference in new issue
Block a user