Notification System
Send custom notifications to the phone interface.App name to display
Notification title
Notification message content
Path to app icon
Dispatch System
Basic Dispatch
Send a dispatch to a specific job.Dispatch message content
Job name that should receive the dispatch (from SQL jobs table)
Image URL or
nil
Dispatch with Custom Coordinates
Send a dispatch with specific coordinates instead of player position.Custom coordinates for the dispatch
Job name that should receive the dispatch
Dispatch message content
Image URL or
nil
Phone State Functions
isFlightmode
Check if flight mode is enabled.Returns
true
if flight mode is enabled, false
otherwiseisFlashlight
Check if flashlight is enabled.Returns
true
if flashlight is enabled, false
otherwisetogglePhone
Toggle phone open/closed state.isPhoneOpen
Check if phone is currently open.Returns
true
if phone is open, false
if closedisPlayerMuted
Check if player is muted in call.Returns
true
if muted, false
otherwisePhone Data Functions
getPhoneNumber
Get the player’s phone number.Returns the player’s phone number
Communication Functions
sendMessage
Send a text message to another player.Target phone number
Message content to send
startCall
Initiate a phone call.Number to call
Whether to make an anonymous call
Phone Access Control
isBlocked
Check if phone is blocked.Returns
true
if blocked, false
otherwiseblockPhone
Prevent the phone from turning on.unblockPhone
Remove blocked status from phone.inputFocus
Set NUI focus keep input for the phone.true
to enable, false
to disableEmail System
sendMail
Send an email to a player.Email with Button
Sender name
Email subject
Email message content
Optional button configuration
Email without Button
sendMailOffline
Send an email to an offline player.Player identifier
Email data object (same structure as sendMail)
Event Numbers
Configure special event numbers that trigger custom actions when called.Configure event numbers in
config.lua
first before using this event.