HasItem + partial support for shops
This commit is contained in:
1 parent
f28e511de6
commit
dee14600ba
14 files changed
+220
-7
No files matched your search
@@ -10,14 +10,14 @@ RegisterNetEvent('community_bridge:client:qb-inventory:openStash', function(id,
|
||||
TriggerServerEvent('inventory:server:OpenInventory', 'stash', id, { maxweight = data.weight, slots = data.slots })
|
||||
end)
|
||||
|
||||
---comment
|
||||
---This will return a boolean if the player has the item in their inventory
|
||||
---@param item string
|
||||
---@return boolean
|
||||
Inventory.HasItem = function(item)
|
||||
return qb:HasItem(item)
|
||||
end
|
||||
|
||||
---comment
|
||||
---This will return a string of the image path for the item
|
||||
---@param item string
|
||||
---@return string
|
||||
Inventory.GetImagePath = function(item)
|
||||
|
||||
Reference in new issue
Block a user