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: stringDescription: 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| Parameter | Type | Description |
|---|---|---|
| src | number | Player server ID |
SendEmail
Sends an in-game email to a player from the server.
Bridge.Phone.SendEmail(src, emailData)| Parameter | Type | Description |
|---|---|---|
| src | number | Player server ID |
| emailData | table | Email data table |