okokPhone integration
This commit is contained in:
1 parent
3e6bc0dd81
commit
70199ea310
2 files changed
+71
No files matched your search
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
local success = lib.callback.await('community_bridge:Callback:okokPhone:sendEmail', false, email, title, message) --[[ @as boolean ]]
|
||||
return success
|
||||
end
|
||||
Reference in new issue
Block a user