# Dispatch System

<figure><img src="https://3505378470-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmOhVROw9E3kpmAG3JYVe%2Fuploads%2FU15cNWVJoT9VVE4zHd7h%2Fdispatch.png?alt=media&#x26;token=fddac0e0-307b-4472-bb2c-c08204777494" alt=""><figcaption></figcaption></figure>

#### Open Command ;&#x20;

```lua
/openDispatchTablet
```

#### Unit Editor Command ;

```lua
/uniteditor
```

#### 📖 Dispatch System — General Logic

This is a **police dispatch system** designed to coordinate officers, track incidents, and manage responses in real-time. It provides an advanced map interface, officer status tracking, and event assignment tools, all in one centralized UI.

***

### 🔹 Main Features

* **Live Map Interface**
  * Shows active incidents, officer locations, vehicles, and foot patrols.
  * Heatmap and markers indicate areas of activity (shots fired, robberies, etc.).
  * Dispatchers can zoom, drag, and highlight specific areas.
* **Incident Management**
  * Events are created when crimes or calls are reported.
  * Each incident displays type (e.g., shooting, robbery, accident), time, location, and assigned officers.
  * Notes section allows dispatchers and officers to share quick details.
* **Officer Tracking**
  * Officer list with badge numbers, duty status (On Duty/Off Duty), and current activity.
  * Units are grouped (Unit A, Unit B, etc.) to show teamwork.
  * Officers can be marked as **In Pursuit, In Vehicle, On Foot, or Offline**.
* **Unit Assignment**
  * Dispatchers can assign officers directly to events.
  * Officers can be grouped into units for coordinated response.
  * Each unit’s activity is shown (e.g., chasing suspect, responding to call).
* **Communication & Chat**
  * Integrated chat system for general, unit-specific, command, and private messages.
  * Messages are color-coded by role (General, Officer, High Command).
* **Permission & Visibility**
  * Dispatchers can control who sees global drawings, notes, and shared data.
  * “Give Permission” button shares specific tools with other officers.

***

### 🔹 Workflow Example

1. **Event Triggered**: A shooting occurs at Hasselhoff Street (10-52).
2. **Dispatcher View**: The event shows up in the “Active Events” list with details.
3. **Assign Officers**: Dispatcher selects available units (e.g., J.Smith, F.Urkan) and assigns them.
4. **Officer Tracking**: Their status updates automatically (in vehicle, in pursuit, etc.).
5. **Ongoing Updates**: Officers send notes, and their position updates on the map.
6. **Resolution**: Event is marked complete, and units are freed for new calls.

***

### 🔹 Advantages

* Centralized management of **all police activity**.
* **Real-time map tracking** improves coordination and response times.
* Officers and dispatchers can **communicate seamlessly** through the integrated chat.
* Heatmaps and incident filters make it easy to spot high-crime areas.
* Encourages **team-based roleplay** by grouping officers into units.
