TODO
This commit is contained in:
1 parent
5e016afc25
commit
567bd7a824
5 files changed
+5
-1
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user