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:
1 parent
7dcb01de2d
commit
5dc2321d67
6 files changed
+12
-12
No files matched your search
@@ -2,6 +2,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
|
||||
@@ -15,8 +16,7 @@ end
|
||||
---@param message string
|
||||
---@return boolean
|
||||
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 = Callback.Trigger('community_bridge:Callback:okokPhone:sendEmail', false, email, title, message)
|
||||
return success
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user