> For the complete documentation index, see [llms.txt](https://docs.deltarix.store/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.deltarix.store/paid-assets/dispatch/exports/client/copy-of-dispatchnotification.md).

# Copy of dispatchNotification

***

```lua
exports.drx_dispatch:panicNotification(...)
```

```lua
TriggerEvent('drx_dispatch:client:panicNotification', ...)
```

```lua
---@class Notification
---@field type? 'create' | 'info' | 'success' | 'error' | 'warning' Type of notification, defaults to 'create'
---@field title string Title of the notification
---@field description string | {callsign: string, department: number, rank: number} The description of the notification
---@field content string | table<{icon: string, text: string}> The content of the notification
---@field meta? string The meta of the notification
---@field closable? boolean Whether the notification is closable or not, defaults to true
---@field duration? number The duration of the notification, defaults to 5000

function Notification.panicNotification()
  local data = {
    id = 4,
    title = "PANIC BUTTON PRESSED",
    description = "John Doe",
    content = "Officer has pressed the panic button at x, x, x, x",
    meta = "Example Default Meta",
    closable = false,
    duration = 10000
  } --[[@as Notification]]
  SendNotification(data)
end
```
