Handlers

Handlers allow you to add code when an event occurs (such as receiving a new report or creating a new GPS channel).

Location of handlers file

dusa_dispatch/edit/handlers.lua

Event List

export
parameters
description

dusa_dispatch:client:SendDispatch

data

It runs when a new alert arrives and sends the alert's data within the data

dusa_dispatch:MenuOpened

none

Runs when dispatch management menu is opened | Use this to hide your hud

dusa_dispatch:MenuClosed

none

Runs when dispatch management menu is closed | Use this to show your hud

dusa_dispatch:CameraCreated

cameraId, cameraName

Runs when new camera is created

dusa_dispatch:UnitCreated

data

It runs when a new unit is created and sends information about the unit

dusa_dispatch:GpsCreated

gps

Runs when a new GPS channel created

dusa_dispatch:RadioCreated

frequency

Runs when a new Radio channel created

Last updated