Skip to content

Main-Scripts/main-mdt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Police MDT System

A comprehensive Mobile Data Terminal (MDT) system for FiveM police departments using ESX framework.

Features

  • Citizen Lookup: Search citizens by identifier, view personal information, criminal history, warrants, and officer notes
  • Vehicle Lookup: Search vehicles by plate number, view owner information, incidents, and active BOLOs
  • Incident Management: Create and manage police incidents with suspects, witnesses, and evidence tracking
  • Warrant System: Issue and execute warrants (requires sergeant+ rank)
  • Report Filing: Create and view departmental reports
  • BOLO System: Create person/vehicle BOLOs with department-wide notifications
  • Officer Roster: View all on-duty officers in real-time
  • Dashboard: Quick overview of active incidents, warrants, BOLOs, and on-duty personnel

Installation

1. Database Setup

Run the sql.sql file in your MySQL database to create all necessary tables.

2. Resource Installation

  1. Copy the main-mdt folder to your resources/[main]/ directory
  2. Add ensure main-mdt to your server.cfg

3. Web UI Build

The web UI needs to be built before first use:

cd resources/[main]/main-mdt/web
npm install
npm run build

Configuration

Edit shared/main.lua to configure:

  • Authorized Jobs: Which jobs can access the MDT (default: police, sheriff)
  • Open Key: Keybind to open MDT (default: F5)
  • Vehicle Computers: Which vehicle classes have MDT access
  • Warrant Ranks: Which job grades can issue warrants
  • Incident/Warrant Types: Available options for incident/warrant creation

Usage

Opening the MDT

  • Method 1: Press F5 (or configured key) while on duty
  • Method 2: Type /mdt in chat
  • Method 3: Access from police vehicle computer (emergency vehicles)

Permissions

  • All Officers: Citizen/vehicle lookup, view incidents, view warrants, file reports, create BOLOs
  • Sergeant+ (Grade 2+): Issue warrants

Features Guide

Citizen Lookup

  1. Enter citizen identifier in search box
  2. View personal info, criminal history, active warrants
  3. Add officer notes for future reference

Vehicle Lookup

  1. Enter license plate in search box
  2. View vehicle details, owner information
  3. See related incidents and BOLOs

Create Incident

  1. Click "New Incident" button
  2. Fill in title, type, location, and description
  3. Add suspects, witnesses, and evidence
  4. Submit to database

Issue Warrant

  1. Click "Issue Warrant" (requires sergeant+)
  2. Select warrant type (Arrest/Search/Bench)
  3. Enter suspect information
  4. List charges (comma-separated)
  5. Add description/probable cause

Create BOLO

  1. Click "Create BOLO"
  2. Select type (Vehicle/Person)
  3. Enter details (plate, model, name, etc.)
  4. Submit - all on-duty officers receive notification

Dependencies

  • es_extended: ESX framework
  • ox_lib: Notification and UI library
  • oxmysql: MySQL database wrapper

Database Tables

  • mdt_incidents: Incident reports
  • mdt_warrants: Active and executed warrants
  • mdt_reports: Officer reports
  • mdt_notes: Citizen profile notes
  • mdt_charges: Criminal charges
  • mdt_bolos: Be On the Lookout alerts

Development

Rebuilding Web UI

After making changes to the web interface:

cd resources/[main]/main-mdt/web
npm run build

Development Mode

For live development with hot reload:

cd resources/[main]/main-mdt/web
npm run dev

Support

For issues or feature requests, contact your server administrator.

Credits

Created by Main Version 1.0.0

About

MDT for police

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published