Server Events
Phone:Server:RegisterMiddleware
Fired when the phone registers middleware handlers.Phone:Server:RegisterCallbacks
Fired when the phone registers server callbacks.Phone:Server:AliasUpdated
Fired when a player updates an app alias.Phone:Server:UIReset
Fired when the phone UI resets.Client Events
Phone:Client:SetData
Sent from server to set phone data on the client.Phone:Client:AddData
Sent from server to add data to the phone.Phone:Client:UpdateData
Sent from server to update phone data.Phone:Client:RemoveData
Sent from server to remove phone data.Phone:Client:ResetData
Sent from server to reset all phone data.Phone:Client:Notifications:Add
Sent from server to add a notification.Phone:Client:Notifications:AddWithId
Sent from server to add a tracked notification.Phone:Client:Notifications:Update
Sent from server to update an existing notification.Phone:Client:Notifications:Remove
Sent from server to remove a notification.Phone:Client:Close
Sent from server to close the phone.Phone:Client:ReceiveShare
Sent when the player receives shared data (contact, document, etc.).Server Callbacks
These callbacks are used by the phone UI to communicate with the server.| Callback | Description |
|---|---|
Phone:Apps:Home | Manage home screen apps (add/remove) |
Phone:Apps:Dock | Manage dock apps (add/remove) |
Phone:Apps:Reorder | Reorder apps on home/dock |
Phone:UpdateAlias | Update app alias |
Phone:ShareMyContact | Share contact with nearby players |
Phone:Permissions | Check phone permissions |
Phone:Gallery:GetUploadURL | Get upload URL for photos |
Phone:Gallery:SavePhoto | Save photo to gallery |
Phone:Messages:GetBurnerMessages | Get burner phone messages |
Middleware Events
Characters:Spawning
The phone hooks into character spawning to initialize phone data.Characters:Creating
The phone hooks into character creation to set up default phone data.Next Steps
Phone - Exports
Phone API methods
Phone - Apps
App configuration
Middleware API
Middleware system