This script is written to work with QBCore, ESX and QBox
Power Dispatch is designed to make life easier for your police force. With real-time notifications, map integration, and an intuitive interface, it streamlines operations and allows officers to focus on what matters most.
Key Features:
- Notifications: Officers can quickly see new alerts on the right side of their screen.
- Quick Attach Key: Officers can instantly attach to calls with a simple button press.
- Clean Dispatch UI: Dispatch UI that makes managing calls and dispatch tasks easy.
- Dispatch Map: This map shows all active alerts and officer locations.
- Map Styles: Three different map layouts to suit your preferences and work style.
- Alerts: Officers can assign themselves to calls, or a dedicated dispatcher can manage assignments, detaching, and closing calls as needed.
- Officer List: A list of active officers displaying active officers and current statuses.
- Status Control: Officers can update their status to 10-8, 10-7, 10-6, or 10-5.
- GPS Control: Dispatch can remotely set an officer’s waypoint, helping direct units.
- Dispatch Control: Dispatchers can assign calls, set radio channels and override statuses.
Config Preview
currentFramework = 'QBCore' -- QBCore / ESX / QBox / Custom (If you are using QBox, make sure to uncomment the marked section in the fxmanifest.lua)
-- Dispatch Command - The command to open the dispatch
dispatchCommand = 'dispatch'
-- Enable Keybind to Open Dispatch - If enabled, players can open the dispatch using a keybind
enableKeybind = true
-- Dispatch Keybind - The keybind to open the dispatch
dispatchKeybind = 'L'
-- Quick Attach Keybind - The keybind to quickly attach to a call
quickAttachKeybind = 'G'
-- Enabled Alerts 
shotsFired = true
vehicleTheft = true
meleeFight = true 
playerDeath = true
-- Enable /911 Command - If enabled, players can call 911 using /911 [message]
enable911Command = true
-- Job Options - Add or remove jobs that can receive alerts and access the dispatch map
-- You can change the division name and color of the unit on the dispatch map
allowedJobs = {
 ['police'] = {
  name = 'LSPD',
 },
 ['sheriff'] = {
  name = 'BCSO',
 }
}
-- Witness Requirement - If enabled, an npc witness is required to report a crime
witnessRequired = false
-- Silencers - If enabled, silenced weapons will not trigger shots fired alerts
enabledSilencers = false
-- Police Alerts - If enabled, police will trigger alerts when they shoot their weapons
policeAlerts = true
-- Alert Chance - The chance that a witness will report a crime
alertChance = 100
-- This is the list of alerts that will be sent to the dispatch
-- You can edit the title, tencode, message, and color on the dispatch map
allAlerts = {
 ['ShotsFired'] = {
  title = 'Shots Fired',
  tencode = '10-32',
  color = 'rgba(255, 0, 0, 0.3)',
 },
 ['VehicleTheft'] = {
  title = 'Vehicle Theft',
  tencode = '10-37',
  color = 'rgba(255, 0, 0, 0.3)',
 },
 ['MeleeFight'] = {
  title = 'Melee Fight',
  tencode = '10-10',
  color = 'rgba(255, 0, 0, 0.3)',
 },
 ['InjuredPlayer'] = {
  title = 'Injured Person',
  tencode = '10-50',
  color = 'rgba(255, 0, 0, 0.3)'
 }
}
-- Custom Alerts can be triggered by calling the following export:
-- exports['power_dispatch']:newAlert(title, tencode, location, color)
-- No Dispatch Zones - Add zones where dispatch alerts will not be triggered
-- Example Hunting Zones, Safe Zones, etc.
noDispatchZones = {
 {x = 0.0, y = 0.0, z = 0.0, radius = 0.0}
}
-- Language Options
-- You can change the language of the dispatch alerts
Lang = {
 status_update = 'Status Update ',
 status_updated = 'Your status has been updated by dispatch',
 gps_update = 'GPS Update',
 gps_updated = 'Your GPS location has been updated by dispatch',
 call_update = 'Call Update',
 assigned_to_call = 'You have been assigned to call #',
 by_dispatch = ' by dispatch',
 attached_to_call = 'You have attached to call #',
 radio_update = 'Radio Update',
 channel_changed = 'Your channel has been changed by dispatch'
}```
Performance: 0.00ms - 0.01ms
Previews:
Escrow Protected
Purchase Link
( 20% Off Coupon Code for New Customers: 20OFFPOWER )
| Code is accessible | No - Editable Functions and UI | 
| Subscription-based | No | 
| Lines (approximately) | ~1300 | 
| Requirements | None | 
| Support | Yes | 
My Other Scripts

![[QBCore / ESX] Power DIspatch](https://img.youtube.com/vi/Ig-zUUbQNZ4/maxresdefault.jpg)