17 lines
534 B
Lua
17 lines
534 B
Lua
if GetResourceState('gksphone') ~= 'started' or (BridgeSharedConfig.Phone ~= "gksphone" and BridgeSharedConfig.VehicleKey ~= "auto") then return end
|
|
|
|
Phone = {}
|
|
|
|
Phone.GetPlayerPhone = function(src)
|
|
return exports["gksphone"]:GetPhoneBySource(src) or false
|
|
end
|
|
|
|
Phone.SendEmail = function(src, email, title, message)
|
|
local data = {}
|
|
data.sender = email
|
|
data.image = '/html/static/img/icons/mail.png'
|
|
data.subject = title
|
|
data.message = message
|
|
exports["gksphone"]:SendNewMail(src, data)
|
|
return true
|
|
end |