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
|
return ESX.PlayerData
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--<-- TODO swap to internal callback system
|
||||||
---This will return a table of all the jobs in the framework.
|
---This will return a table of all the jobs in the framework.
|
||||||
---@return table
|
---@return table
|
||||||
Framework.GetFrameworkJobs = function()
|
Framework.GetFrameworkJobs = function()
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ Inventory.GetItemInfo = function(item)
|
|||||||
if not frameworkName then return {} end
|
if not frameworkName then return {} end
|
||||||
local dataRepack = {}
|
local dataRepack = {}
|
||||||
if frameworkName == 'es_extended' then
|
if frameworkName == 'es_extended' then
|
||||||
|
--<-- TODO swap to internal callback system
|
||||||
local callbackData = lib.callback.await('community_bridge:Callback:core_inventory', false)
|
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....
|
-- really really wish this inventory allowed me to pull the item list client side....
|
||||||
dataRepack = callbackData[item]
|
dataRepack = callbackData[item]
|
||||||
|
|||||||
@@ -221,6 +221,7 @@ Inventory.CreateShop = function(shopTitle, shopInventory, shopCoords, shopGroups
|
|||||||
end
|
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.
|
-- 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)
|
lib.callback.register('community_bridge:Callback:core_inventory', function(source)
|
||||||
local items = core:getItemsList()
|
local items = core:getItemsList()
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ Phone = Phone or {}
|
|||||||
---@return boolean
|
---@return boolean
|
||||||
---@diagnostic disable-next-line: duplicate-set-field
|
---@diagnostic disable-next-line: duplicate-set-field
|
||||||
Phone.SendEmail = function(email, title, message)
|
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 ]]
|
local success = lib.callback.await('community_bridge:Callback:okokPhone:sendEmail', false, email, title, message) --[[ @as boolean ]]
|
||||||
return success
|
return success
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ Phone.SendEmail = function(src, email, title, message)
|
|||||||
return success
|
return success
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--<-- TODO swap to internal callback system
|
||||||
lib.callback.registry('community_bridge:Callback:okokPhone:sendEmail', function(src, email, title, message)
|
lib.callback.registry('community_bridge:Callback:okokPhone:sendEmail', function(src, email, title, message)
|
||||||
return Phone.SendEmail(src, email, title, message)
|
return Phone.SendEmail(src, email, title, message)
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in new issue
Block a user