This commit is contained in:
MrNewb committed 2025-05-11 20:36:07 -04:00
1 parent 5e016afc25
commit 567bd7a824
5 files changed
+5 -1

No files matched your search

@@ -12,6 +12,7 @@ Inventory.GetItemInfo = function(item)
if not frameworkName then return {} end
local dataRepack = {}
if frameworkName == 'es_extended' then
--<-- TODO swap to internal callback system
local callbackData = lib.callback.await('community_bridge:Callback:core_inventory', false)
-- really really wish this inventory allowed me to pull the item list client side....
dataRepack = callbackData[item]
@@ -221,6 +221,7 @@ Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups
end
--<-- TODO swap to internal callback system
-- This is used for the esx users, documentation doesnt show a client side available option for the inventory so we use jank callbacks to get this.
lib.callback.register('community_bridge:Callback:core_inventory', function(source)
local items = core:getItemsList()