Files
community_bridge/modules/phones/gksphone/server.lua
T
2025-01-08 06:33:31 -05:00

16 lines
448 B
Lua

if GetResourceState('gksphone') ~= 'started' then return end
Phones = {}
Phones.GetPlayerPhone = function(src)
return exports["gksphone"]:GetPhoneBySource(src) or false
end
Phones.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