Skip to main content
Pandryx Notify
Installation
  1. Unzip Pandryx_Notify and place Pandryx_Notify in your server’s resources folder.
  2. Add ensure Pandryx_Notify to your server.cfg
  3. Make sure it starts before any resource that depends on it
  4. Start / Restart your server
Resource Structure
Configuration config.lua contains the default fallback values used when a parameter is not explicitly passed by the caller.
Any key you do not pass in a notification call will fall back to the value above. Explicit values — including false, 0, and "" — are always respected and will never be overwritten by a default. Notification Fields Notification Types Positions Actions Action buttons appear on toast and confirm layouts. Each action is a table with the following fields: When a player clicks an action button, notify fires either TriggerEvent or TriggerServerEvent depending on eventType. The receiving event handler is registered in your own resource, not in notify. Action Button Styles Sounds Place any .wav, .mp3, or .ogg file inside html/sounds/ and reference it by filename:
Any file dropped into that folder is automatically served — no manifest changes needed. Set sound = false or omit the field entirely for a silent notification. Stacking Modes The position updates globally whenever a new notification arrives with a position or stacking field. This lets you change the layout between calls. Important Notifications Setting important = true pins the notification to the front of the stack and disables auto-dismiss. The player must manually close it.
Queue Behaviour A maximum of 5 notifications are shown on screen at once. Any additional notifications are queued and promoted automatically as older ones are dismissed. API Reference Client-Side Export
Client-Side Event
Server-Side Export
Pass -1 as playerId to broadcast to all connected players. Server-Side Event
Usage Examples Client-Side — via Export Success (with sound)
Error
Warning (with ghost action button)
Info (stacking disabled — list mode)
Info (with custom icon override)
Celebration (with confetti and sound)
Confirm Dialog — client action (no data)
Confirm Dialog — server action (with data)
Important — Pinned (no auto-dismiss)
Stacking enabled — deck mode
Stacking disabled — list mode
Clear all notifications
Client-Side — via Event
Server-Side — via Export Notify a specific player
Broadcast to all players
Celebration broadcast — confetti for everyone
Clear a specific player
Clear all players
Server-Side — via Event
Receiving Action Callbacks in Your Own Resource Action button events are fired into your own resource. Register the handlers there, not in notify. Client-side handler
Server-side handler
Renaming the Resource If you rename the resource from Pandryx_Notify to something else, update every export call in your other resources to match:
Event names (Pandryx_Notify:client:*, Pandryx_Notify:server:*) do not change automatically — find and replace them across your codebase if you rename. Adding New Sounds Download link: https://mixkit.co/free-sound-effects/notification/ Drop any .wav, .mp3, or .ogg file into html/sounds/ and reference it by filename in your notification call:
No changes to fxmanifest.lua are needed. The html/sounds/* wildcard serves all files in that folder automatically.