Overview
Access viaPhone on both server and client.
Notifications
Push notifications to players
Phone Data
Manage app data
UI Control
Open, close, and manage phone state
Permissions
App-level permission checks
Server-Side Methods
Phone.Notification:Add
Send a notification to a player’s phone.Player server ID
Notification title
Notification body text
Timestamp (use
os.time())Display duration in milliseconds
App identifier (e.g.,
'messages', 'email', 'bank')Action buttons on the notification
Additional data payload
Phone.Notification:AddWithId
Send a notification with a specific ID for tracking and updating.Unique notification identifier for later updates/removal
Notification:Add.
Example:
Phone.Notification:Update
Update an existing notification by ID.Player server ID
Notification ID (from AddWithId)
New title
New description
Phone.Notification:RemoveById
Remove a notification by its ID.Phone:UpdateJobData
Update a player’s job data on their phone (permissions, apps, etc.).Player server ID
If
true, returns the data instead of sending to clientWhen
returnValues is true: {charJobPerms = table, jobData = table}Client-Side Methods
Phone:Open
Opens the phone UI.Phone:Close
Closes the phone UI.Force close, skip route reset
Skip route reset behavior
Phone:IsOpen
Check if the phone UI is currently open.true if phone is openPhone:OpenLimited
Opens the phone in limited mode (e.g., for payphones).Phone:OpenPayphone
Opens the phone specifically for payphone use.Phone:IsAppUsable
Check if a specific app is installed and usable by the current player.App identifier or table of app identifiers
true if the app is accessiblePhone Data Methods (Client)
Phone.Data:Set
Set phone data by key.Phone.Data:Add
Add data to the phone store.Phone.Data:Update
Update existing phone data.Phone.Data:Remove
Remove phone data by key and ID.Phone.Data:Reset
Clear all phone data.Permissions (Client)
Phone.Permissions:HasPermission
Check if the current player has a specific app permission.App identifier
Permission name
true if player has the permissionBest Practices
Use Meaningful Notification Durations
Use Meaningful Notification Durations
Track Notifications When Needed
Track Notifications When Needed
Next Steps
Phone - Events
Phone events and middleware
Phone - Apps
App configuration and restrictions
Characters API
Character data access