SERVER EXPORTS
Fetch Emails (By Source)
Fetches a list of emails for a player using their Server ID (Source). You can filter by inbox type (inbox, favourites, sent, bin).
local emails = exports["17mov_Phone"]:Email_FetchEmailsBySrc(src, inboxType)Returns:
EmailMessage[]: An array of email objects.
src
number
❌
The player's server ID (source).
inboxType
"inbox" | "favourites"
| "sent" | "bin"
❌
Target inbox of player
Fetch Emails (By Number)
Fetches a list of emails for a player using their phone number. You can filter by inbox type. (inbox, favourites, sent, bin).
local emails = exports["17mov_Phone"]:Email_FetchEmailsByNumber(number, inboxType)Returns:
EmailMessage[]: An array of email objects.
number
number
❌
The player's phone number.
inboxType
"inbox" | "favourites"
| "sent" | "bin"
❌
Target inbox of player
Send System Email (By Source)
Sends an automated system email to a player using their Server ID (Source). This is useful for job notifications, alerts, or automated messages.
src
number
❌
The player's server ID (source).
topic
string
❌
The subject line of the email.
message
string
❌
The main content of the email.
images
string[]
✅
An optional array of image URLs to attach.
Send System Email (By Number)
Sends an automated system email to a player using their phone number. This is useful for job notifications, alerts, or automated messages.
src
number
❌
The player's phone number.
topic
string
❌
The subject line of the email.
message
string
❌
The main content of the email.
images
string[]
✅
An optional array of image URLs to attach.
Send Email (By Source)
Sends an email to a player using their Server ID (Source) with a specified sender name.
src
number
❌
The player's server ID (source).
sender
string
❌
The display name of the email sender. (if using fake-data set last variable to true)
topic
string
❌
The subject line of the email.
message
string
❌
The main content of the email.
images
string[]
✅
An optional array of image URLs to attach.
customUser
boolean
✅
Set this to true, if sender is account that doesn't exist
Send Email (By Number)
Sends an email to a player using their phone number with a specified sender name
number
number
❌
The player's phone number.
sender
string
❌
The display name of the email sender (if using fake-data set last variable to true)
topic
string
❌
The subject line of the email.
message
string
❌
The main content of the email.
images
string[]
✅
An optional array of image URLs to attach.
customUser
boolean
✅
Set this to true, if sender is account that doesn't exist
Last updated