diff --git a/modules/framework/es_extended/client.lua b/modules/framework/es_extended/client.lua index cea9a41..b0e3fca 100644 --- a/modules/framework/es_extended/client.lua +++ b/modules/framework/es_extended/client.lua @@ -15,6 +15,7 @@ Framework.GetPlayerData = function() return ESX.PlayerData end +--<-- TODO swap to internal callback system ---This will return a table of all the jobs in the framework. ---@return table Framework.GetFrameworkJobs = function() diff --git a/modules/inventory/core_inventory/client.lua b/modules/inventory/core_inventory/client.lua index e1d877c..95a5d27 100644 --- a/modules/inventory/core_inventory/client.lua +++ b/modules/inventory/core_inventory/client.lua @@ -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] diff --git a/modules/inventory/core_inventory/server.lua b/modules/inventory/core_inventory/server.lua index 0f24af5..43f1a25 100644 --- a/modules/inventory/core_inventory/server.lua +++ b/modules/inventory/core_inventory/server.lua @@ -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() diff --git a/modules/phone/okokPhone/client.lua b/modules/phone/okokPhone/client.lua index 5fd5def..c6fd86d 100644 --- a/modules/phone/okokPhone/client.lua +++ b/modules/phone/okokPhone/client.lua @@ -11,6 +11,7 @@ Phone = Phone or {} ---@return boolean ---@diagnostic disable-next-line: duplicate-set-field Phone.SendEmail = function(email, title, message) + --<-- TODO swap to internal callback system local success = lib.callback.await('community_bridge:Callback:okokPhone:sendEmail', false, email, title, message) --[[ @as boolean ]] return success end diff --git a/modules/phone/okokPhone/server.lua b/modules/phone/okokPhone/server.lua index 4897937..d493309 100644 --- a/modules/phone/okokPhone/server.lua +++ b/modules/phone/okokPhone/server.lua @@ -49,7 +49,7 @@ Phone.SendEmail = function(src, email, title, message) return success end - +--<-- TODO swap to internal callback system lib.callback.registry('community_bridge:Callback:okokPhone:sendEmail', function(src, email, title, message) return Phone.SendEmail(src, email, title, message) end)