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
@@ -17,6 +17,7 @@
local resourceName = "okokPhone"
if GetResourceState(resourceName) == 'missing' then return end
Phone = Phone or {}
Callback = Callback or Require("lib/utility/shared/callbacks.lua")
---This will get the name of the Phone system being being used.
---@return string
@@ -53,8 +54,7 @@ Phone.SendEmail = function(src, email, title, message)
return success
end
--<-- TODO swap to internal callback system
lib.callback.register('community_bridge:Callback:okokPhone:sendEmail', function(src, email, title, message)
Callback.Register('community_bridge:Callback:okokPhone:sendEmail', function(src, email, title, message)
return Phone.SendEmail(src, email, title, message)
end)