Files

26 lines
745 B
Lua
Raw Permalink Normal View History

2025-06-05 03:10:18 -04:00
---@diagnostic disable: duplicate-set-field
2025-05-05 18:11:58 +01:00
local resourceName = "okokPhone"
2025-05-18 23:45:37 -04:00
if GetResourceState(resourceName) == 'missing' then return end
2025-05-05 18:11:58 +01:00
Phone = Phone or {}
2025-06-05 03:10:18 -04:00
---This will get the name of the Phone system being being used.
---@return string
Phone.GetPhoneName = function()
return resourceName
end
2025-09-10 12:27:12 -04:00
Phone.GetResourceName = function()
return resourceName
end
2025-06-05 03:10:18 -04:00
---This will send an email to the passed email address with the title and message.
2025-05-05 18:11:58 +01:00
---@param email string
---@param title string
---@param message string
---@return boolean
Phone.SendEmail = function(email, title, message)
2026-08-17 03:49:37 -07:00
local success = lib.callback.await('community_bridge:Callback:okokPhone:sendEmail', false, email, title, message)
2025-05-05 18:11:58 +01:00
return success
end
return Phone