> For the complete documentation index, see [llms.txt](https://zat-scripts.gitbook.io/zat-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zat-scripts.gitbook.io/zat-scripts/qbcore/mdt/dispatch.md).

# Dispatch

How To create a dispatch alert ?

```etlua
RegisterCommand('alr', function()
    local data = {
        coords      = GetEntityCoords(PlayerPedId()),
        icon        = 'fas fa-bullhorn',
        title       = 'Store Robbery',
        message     = 'Store Robbery in progress',
        priority    = 1

    }
    exports['zat-mdt']:Alert(data)
end)

RegisterCommand('alr2', function()
    local data = {
        coords      = GetEntityCoords(PlayerPedId()),
        icon        = 'fas fa-bullhorn',
        title       = 'Maze Bank Robbery',
        message     = 'Maze Bank Robbery in progress',
        priority    = 3

    }
    exports['zat-mdt']:Alert(data)
end)
```
