Files
community_bridge/modules/phone/okokPhone/client.lua
T

19 lines
677 B
Lua
Raw Normal View History

2025-05-05 18:11:58 +01:00
local resourceName = "okokPhone"
local configValue = BridgeSharedConfig.Phone
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
Phone = Phone or {}
---comment
---@param email string
---@param title string
---@param message string
---@return boolean
---@diagnostic disable-next-line: duplicate-set-field
Phone.SendEmail = function(email, title, message)
2025-05-11 20:36:07 -04:00
--<-- TODO swap to internal callback system
2025-05-05 18:11:58 +01:00
local success = lib.callback.await('community_bridge:Callback:okokPhone:sendEmail', false, email, title, message) --[[ @as boolean ]]
return success
end
return Phone