Phone — Server

GetResourceName

Returns the phone resource name.

local name = Bridge.Phone.GetResourceName()
-- Returns: string (always "default")

Description: Returns the name of the Phone module resource. Used for internal identification. Always returns "default" for the built-in Phone module.

GetPhoneName

Returns the phone system resource name.

local phoneName = Bridge.Phone.GetPhoneName()
-- Returns: string

Description: Returns the name of the underlying phone system being used (e.g., “qs-smartphone”, “lb-phone”, “gksphone”). This identifies which phone resource is configured in the bridge settings.

GetPlayerPhone

Returns a player’s phone number.

local phone = Bridge.Phone.GetPlayerPhone(src)
-- Returns: string
ParameterTypeDescription
srcnumberPlayer server ID

SendEmail

Sends an in-game email to a player from the server.

Bridge.Phone.SendEmail(src, emailData)
ParameterTypeDescription
srcnumberPlayer server ID
emailDatatableEmail data table