Adjusted force config values to match the required values. Also removed unused config options. Swapped default logger to built-in
23 lines
800 B
Lua
23 lines
800 B
Lua
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 {}
|
|
|
|
---comment
|
|
---@param src number
|
|
---@return number||boolean
|
|
---@diagnostic disable-next-line: duplicate-set-field
|
|
Phone.GetPlayerPhone = function(src)
|
|
return exports['qs-base']:GetPlayerPhone(src) or false
|
|
end
|
|
|
|
---comment
|
|
---@param src number
|
|
---@param email string
|
|
---@param title string
|
|
---@param message string
|
|
---@return boolean
|
|
Phone.SendEmail = function(src, email, title, message)
|
|
TriggerClientEvent('community_bridge:Server:genericEmail', src, { sender = email, subject = title, message = message, button = {} })
|
|
return true
|
|
end |