Remove all uses of ox_lib callbacks in favor of internal option

This seems fine, Crowley created the callback system in bridge so will need review
This commit is contained in:
MrNewb committed 2025-06-28 16:52:01 -04:00
1 parent 7dcb01de2d
commit 5dc2321d67
6 files changed
+12 -12

No files matched your search

+2 -2
View File
@@ -2,6 +2,7 @@
if GetResourceState('es_extended') ~= 'started' then return end
Prints = Prints or Require("lib/utility/shared/prints.lua")
Callback = Callback or Require("lib/utility/shared/callbacks.lua")
ESX = exports["es_extended"]:getSharedObject()
@@ -452,8 +453,7 @@ AddEventHandler("playerDropped", function()
TriggerEvent("community_bridge:Server:OnPlayerUnload", src)
end)
--<-- TODO swap to internal callback system
lib.callback.register('community_bridge:Callback:GetFrameworkJobs', function(source)
Callback.Register('community_bridge:Callback:GetFrameworkJobs', function(source)
return Framework.GetFrameworkJobs() or {}
end)