feat(Phone.GetPhoneName)
This commit is contained in:
1 parent
9a4ab4cdd5
commit
a4988fb7e3
10 files changed
+103
-30
No files matched your search
@@ -1,13 +1,19 @@
|
||||
---@diagnostic disable: duplicate-set-field
|
||||
local resourceName = "okokPhone"
|
||||
if GetResourceState(resourceName) == 'missing' then return end
|
||||
Phone = Phone or {}
|
||||
|
||||
---comment
|
||||
---This will get the name of the Phone system being being used.
|
||||
---@return string
|
||||
Phone.GetPhoneName = function()
|
||||
return resourceName
|
||||
end
|
||||
|
||||
---This will send an email to the passed email address with the title and message.
|
||||
---@param email string
|
||||
---@param title string
|
||||
---@param message string
|
||||
---@return boolean
|
||||
---@diagnostic disable-next-line: duplicate-set-field
|
||||
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 ]]
|
||||
|
||||
Reference in new issue
Block a user