πͺ Notifications
SendNotification
Notifications with actions
Add actions to ask the player a question, such as a confirmation for your own script. The notification shows one or two buttons. When the player presses one, the phone fires that button's event and closes the notification. Buttons use the same shape as Mail actions.
Actions only work from the server-side export. The client export drops them.
The server fires the events, not the player's client. Register server events with AddEventHandler, not RegisterNetEvent, so clients can't trigger them:
With isServer = false, the event goes to that player's client as TriggerClientEvent(event, playerSource, data). Handle it with RegisterNetEvent(event, function(data, reason) ... end) on the client.
Rules:
- Each notification resolves once: either one button press or one
onDismiss. - Notifications with actions are not saved for offline players.
- A player can have at most 3 unanswered action notifications, and at most 2 from the same resource.
- Tapping the notification body does nothing. The player answers with a button or swipes it away.
- If your resource stops, its open requests are removed from the phone without firing any events.
Live notifications
For content that updates, like a song or a delivery ETA, use a live activity instead of a notification. It's a client export, so trigger it from the server with a client event:

The activity above on a YOS phone.
See Live Activities for all fields and button handling.