2025-03-04 22:33:30 -05:00
|
|
|
local resourceName = "qs-smartphone"
|
|
|
|
|
local configValue = BridgeSharedConfig.Phone
|
|
|
|
|
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
|
|
|
|
|
Phone = Phone or {}
|
2025-04-28 10:31:14 -04:00
|
|
|
|
2025-03-03 01:37:29 -05:00
|
|
|
---comment
|
|
|
|
|
---@param src number
|
|
|
|
|
---@return number||boolean
|
2025-04-28 10:31:14 -04:00
|
|
|
---@diagnostic disable-next-line: duplicate-set-field
|
2025-01-10 16:36:20 -05:00
|
|
|
Phone.GetPlayerPhone = function(src)
|
|
|
|
|
return exports['qs-base']:GetPlayerPhone(src) or false
|
|
|
|
|
end
|
|
|
|
|
|
2025-03-03 01:37:29 -05:00
|
|
|
---comment
|
|
|
|
|
---@param src number
|
|
|
|
|
---@param email string
|
|
|
|
|
---@param title string
|
|
|
|
|
---@param message string
|
|
|
|
|
---@return boolean
|
2025-01-10 16:36:20 -05:00
|
|
|
Phone.SendEmail = function(src, email, title, message)
|
|
|
|
|
TriggerClientEvent('community_bridge:Server:genericEmail', src, { sender = email, subject = title, message = message, button = {} })
|
|
|
|
|
return true
|
|
|
|
|
end
|