Phone — Client
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.
SendEmail
Sends an in-game email to the local player.
Bridge.Phone.SendEmail(emailData)| Parameter | Type | Description |
|---|---|---|
| emailData | table | Email data table |
Email Data Format
Bridge.Phone.SendEmail({
to = 'player@email.com',
sender = 'Police Department',
subject = 'Your Fine',
message = 'You have been fined for speeding.'
})