📚
Dusa all scripts documentation
  • Home
  • General Questions
    • Escrow System
    • Error parsing script ... <\1>
    • Failed to verify protected resource
    • You lack the required entitlement
    • If nothing fixed your problems
  • Need Help?
  • Scripts
    • Police Job
      • Installation
      • Configuration
      • Client
        • Exports
        • Events
      • Server
        • Callbacks
      • Common Issues
    • Evidence
      • Installation
      • Configuration
      • Client
        • Events
      • How to add custom weapon compatibility?
      • Common Issues
    • Hud
      • Installation
      • Configuration
      • Client
        • Events
        • Exports
      • Server
        • Events
    • Vehicle Keys
      • Installation
      • How to give keys to player? (e.g on dealerships)
      • Client
        • Exports
        • Events
      • Server
        • Exports
        • Events
    • Billing
      • Installation
      • Configuration & Exports (ESX)
      • Configuration & Exports (QB)
    • Police MDT
      • Installation
      • Configuration & Exports (ESX/QBCore)
    • Dispatch
      • Installation
      • On other resources, how can I integrate dispatch?
      • How to send custom dispatch?
      • Client
        • Exports
        • Events
        • Handlers
      • Server
        • Exports
    • Multicharacter + Spawn Selector
      • Installation
      • Configuration & Exports (ESX)
      • Configuration & Exports (QB)
Powered by GitBook
On this page
  • Location of handlers file
  • Event List
  1. Scripts
  2. Dispatch
  3. Client

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

PreviousEventsNextServer

Last updated 3 months ago