01 Exports & API
Client Exports
| Export | Description |
|---|
| Notify(data: { title, text, type, duration, ... }) | Displays a v2 notification with optional AgencyAI smart-priority/duration/spam handling. |
Client Events
| Event | Description |
|---|
| Agency:Notify:Send | Legacy v1 entry point to display a notification with the same payload as the export. |
| Agency:Notify:LoadSettings | Applies per-player saved UI settings (position, color, scale, style) from the server. |
Server Events
| Event | Description |
|---|
| Agency:Notify:SaveSettings | Validates and persists the player's notify settings (position, accent, scale, style). |
Example: Basic notification
exports['Agency-Notify']:Notify({
title = 'Title',
text = 'Notification text',
type = 'success', -- 'success' | 'error' | 'info' | 'warning'
duration = 5000, -- ms (optional)
})