returns added everywhere per crowleys request

This commit is contained in:
MrNewb committed 2025-05-10 00:01:56 -04:00
1 parent 3e63414973
commit 7e0124f02e
150 files changed
+426 -130

No files matched your search

+3 -1
View File
@@ -40,4 +40,6 @@ Inventory.StripPNG = function(item)
item = string.gsub(item, ".png", "")
end
return item
end
end
return Inventory
+3 -1
View File
@@ -151,4 +151,6 @@ Inventory.StripPNG = function(item)
item = string.gsub(item, ".png", "")
end
return item
end
end
return Inventory
+3 -1
View File
@@ -54,4 +54,6 @@ end
RegisterNetEvent('community_bridge:client:codem-inventory:openStash', function(id, data)
if source ~= 65535 then return end
TriggerServerEvent('codem-inventory:server:openstash', id, data.slots, data.weight, data.label)
end)
end)
return Inventory
+3 -1
View File
@@ -171,4 +171,6 @@ end
-- @param shopGroups table
Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups)
return true, print("Unable to Create Shop for codem-inventory, I do not have access to a copy of this inventory to bridge the feature.")
end
end
return Inventory
+3 -1
View File
@@ -61,4 +61,6 @@ Inventory.GetPlayerInventory = function()
})
end
return repackedTable
end
end
return Inventory
+3 -1
View File
@@ -225,4 +225,6 @@ end
lib.callback.register('community_bridge:Callback:core_inventory', function(source)
local items = core:getItemsList()
return items or {}
end)
end)
return Inventory
+3 -1
View File
@@ -41,4 +41,6 @@ RegisterNetEvent('community_bridge:client:jpr-inventory:openStash', function(id,
if source ~= 65535 then return end
TriggerEvent("inventory:client:SetCurrentStash", id)
TriggerServerEvent('inventory:server:OpenInventory', 'stash', id, { maxweight = data.weight, slots = data.slots })
end)
end)
return Inventory
+3 -1
View File
@@ -154,4 +154,6 @@ Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups
jpr:CreateShop(repackedShopItems)
registeredShops[shopTitle] = true
return true
end
end
return Inventory
@@ -69,3 +69,5 @@ end
Inventory.OpenStash = function(id)
origin:openInventory('stash', id, { label = id, weight = 400000, slots = 100, })
end
return Inventory
@@ -181,3 +181,6 @@ end
Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups)
return true, print("Currently runtime shops are not supported in origen_inventory")
end
return Inventory
+3 -1
View File
@@ -52,4 +52,6 @@ end
Inventory.OpenShop = function(shopTitle, shopInventory)
ox_inventory:openInventory("shop", { type = shopTitle, id = 1 })
end
end
return Inventory
+3 -1
View File
@@ -182,4 +182,6 @@ end
---@return table
Inventory.GetItem = function(src, item, metadata)
return ox_inventory:GetItem(src, item, metadata, false)
end
end
return Inventory
+3 -1
View File
@@ -41,4 +41,6 @@ RegisterNetEvent('community_bridge:client:ps-inventory:openStash', function(id,
if source ~= 65535 then return end
TriggerEvent('ps-inventory:client:SetCurrentStash', id)
TriggerServerEvent('ps-inventory:server:OpenInventory', 'stash', id, { maxweight = data.weight, slots = data.slots })
end)
end)
return Inventory
+3 -1
View File
@@ -176,4 +176,6 @@ Inventory.CreateShop = function(src, shopTitle, shopInventory, shopCoords, shopG
sloth:CreateShop(repackedShopItems)
registeredShops[shopTitle] = true
return true
end
end
return Inventory
+3 -1
View File
@@ -41,4 +41,6 @@ RegisterNetEvent('community_bridge:client:qb-inventory:openStash', function(id,
if source ~= 65535 then return end
TriggerEvent("inventory:client:SetCurrentStash", id)
TriggerServerEvent('inventory:server:OpenInventory', 'stash', id, { maxweight = data.weight, slots = data.slots })
end)
end)
return Inventory
+3 -1
View File
@@ -202,4 +202,6 @@ Inventory.CreateShop = function(src, shopTitle, shopInventory, shopCoords, shopG
v1ShopData[shopTitle] = shopData
print("QB-INVENTORY: You are using an outdated version of qb-inventory, please update to the latest version. Stuff will still work but you are using litterally the most exploitable inventory in fivem.")
end
end
end
return Inventory
@@ -74,3 +74,5 @@ end
Inventory.OpenStash = function(id)
quasar:RegisterStash(id, 50, 50000)
end
return Inventory
+3 -1
View File
@@ -198,4 +198,6 @@ end
-- @param shopGroups table
Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups)
return false, print("Currently qs shop is not bridged")
end
end
return Inventory
@@ -70,4 +70,6 @@ end
---@return nil
Inventory.OpenStash = function(id)
tgiann:OpenInventory('stash', id, { maxweight = 400000, slots = 100 })
end
end
return Inventory
@@ -204,4 +204,6 @@ Inventory.GetItem = function(src, item, metadata)
item.count = item.amount
item.metadata = item.info
return item
end
end
return Inventory