Configuration

Page dedicated to how to configure our Police MDT [V2]

Languages

You can set the language of the script in the configuration file.

  • en-US: English

  • fr-FR: French

  • pl-PL: Polish

  • de-DE: German

  • es-ES: Spanish

  • pt-PT: Portugese

  • ja-JP: Japanese

  • es-IT: Italian

  • ko-KR: Korean

Config.Locale = "en-US"

Commands & Keybinds

General

  • /mdtlspd (DELETE): Toggle the MDT Dashboard.

  • /qfmdtbadge (B): Show/Hide Officer Badge.

Camera Mode

  • /qfmdtpolicecapturephoto (ENTER / SPACE): Take a photo.

  • /qfmdtpolicecameratogglefocus (L-ALT / RMB): Toggle mouse focus.

  • /qfmdtpolicecameratoggleflashlight (F): Toggle camera flashlight.

  • /qfmdtpolicecameratoggleside (R): Switch between Front/Back camera.

Radar

  • /qfmdtradartoggle (U): Toggle the entire Radar system.

  • Front Radar Settings

    • /qfmdtradarshowfront (F5): Show Front Radar.

    • /qfmdtradarhidefront (F6): Hide Front Radar

    • /qfmdtradartoggleinteractfront (PGUP): Lock/Unlock Front Radar target

  • Back Radar Settings

    • /qfmdtradarshowback (F7): Show Back Radar.

    • /qfmdtradarhideback (F8): Hide Back Radar

    • /qfmdtradartoggleinteractback (PGDN): Lock/Unlock Back Radar target

circle-info

Note: All keys are configurable in config.lua.

Configuring Ranks (Grades)

config.lua, the Config.Grades table controls the hierarchy visible in the MDT. This must match your framework's job grades (ESX/QBCore/QBOX) to ensure correct label display.

2. Customizing Fines

You can add new categories and fines in Config.FineList.

3. Dispatch Colors & Vehicles

The dispatch system uses specific color codes for vehicles. These are defined in Config.Dispatch.Colors. When creating custom alerts, you can use these or standard RGB values.


Server-side Exports

Use these exports in your other resources to interact with the MDT backend.

AddLog

Adds an entry to the Audit Log. Useful for tracking evidence locker access, armory usage, or boss menu actions.

Syntax:

Parameters:

Parameter
Type
Description

source

number

Player Source ID.

tag

string

Category tag (e.g., 'armory', 'evidence', 'boss').

text

string

Log message.

color

string

Color theme ('blue', 'red', 'green', 'orange').

fields

table

(Optional) Key-value pairs for extra metadata.

args

table

(Optional) Arguments for translation if text is a locale key.

Example (Armory Usage):


Client-side Exports

Use these exports to integrate the MDT UI and systems with other scripts (e.g., Robbery scripts, Radar systems).

CreateDispatchAlert

Triggers a dispatch notification for all on-duty police.

Syntax:

Parameters:

Parameter
Type
Description

coords

vector3

Location of the alert.

title

string

Alert Header.

description

string

Detailed info (e.g., street name, vehicle info).

code

string

10-Code (e.g., '10-90').

colorRGB

table

{r, g, b} format.

maxOfficers

number

(Optional) flashing limit of units.

duration

number

(Optional) Time in ms the alert stays on screen.

Example (Bank Robbery):

showOfficerBadge

Displays the badge ID card on screen.

Syntax:

Data Structure:

Example:

AddHeistZone (Map)

Adds a visual zone to the live map, useful for ongoing robberies.

Syntax:

Example:

RemoveHeistZone

Removes a heist zone when the event is over.

Example:


Camera & Radar Exports

Bodycam

Control the immersion overlays.

Radar

Control the vehicle radar system programmatically.

Dispatch Integrations & Custom Alerts

Compatibility

Enable 3rd party script compatibility by editing config/config.lua.

Custom Alerts

Control and send dispatch alerts to the MDT programmatically.

Last updated