> For the complete documentation index, see [llms.txt](https://tk-scripts.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tk-scripts.gitbook.io/docs/tk_mdt.md). Agents can also search and read this documentation through its [MCP server](https://tk-scripts.gitbook.io/docs/~gitbook/mcp).

# tk\_mdt

MDT is an in-game police and EMS tablet for FiveM servers running ESX, QBCore or Qbox.

Officers use it to write incidents and warrants, look up people and vehicles, and follow calls on a live map. You decide how many MDTs the server has, which jobs open each one and which pages it shows.

[All-in-one MDT V2 product page](https://tkscripts.com/scripts/mdt?utm_source=gitbook\&utm_medium=docs\&utm_content=mdt) | [Subscription plans](https://tkscripts.com/subscriptions?utm_source=gitbook\&utm_medium=docs\&utm_content=mdt) | [Watch the showcase on YouTube](https://www.youtube.com/watch?v=9T3ENM1rpic) | [Install MDT](https://tk-scripts.gitbook.io/docs/tk_mdt/installation.md)

{% embed url="<https://www.youtube.com/watch?v=9T3ENM1rpic>" %}
MDT showcase (3 min 10 s).
{% endembed %}

## Features

### Permissions and logs

* Permissions for each page and action (read, write, delete), editable in game
* Predefined permissions in the config, or no permissions at all
* Create and delete actions are logged in game, with the page and the value

### Unlimited MDTs and custom pages

* Create as many MDTs as you want, with their own settings
* Choose the pages each MDT has
* Set the jobs needed to use each MDT
* Unlimited custom pages that embed a website (iframe) or run code to open other UIs
* Built-in support for tk\_cctv, tk\_jail and tk\_dispatch

### Tags and appearance

* Tag page to create, edit and remove tags
* Light or dark theme
* 14 predefined primary colours and a primary shade
* Colours per MDT, such as blue for police and red for EMS by default

### Built-in pages

* Home with chat, announcements, warrants and BOLOs
* Profiles, vehicles, properties and businesses
* Incidents, reports, training reports and police reports
* Evidence and weapons pages
* Map with active units, calls and a live map view with markers
* Charges, legislation and employees
* Hire employees from inside the MDT
* Configurable report types, including reports shared between departments

### Investigation tools

* Facial recognition: search by image URL; opens the match among profiles with an image
* Players file police reports at the station and can hide their name and number
* Tags on profiles, vehicles, reports and weapons, with a name and colour
* A minimum grade per tag; lower grades can't see reports and incidents with that tag
* Photos on profiles, vehicles, reports and evidence, added by link or taken in game

### Criminals and charges

* Manage the criminals linked to an incident
* Warrants shown on the home page
* Each charge has a minimum and maximum fine and sentence, set with a slider
* Copy and paste charges to other criminals
* Charges can be colour-coded for easier reading

### Works with your other scripts

* Register vehicles and weapons from other scripts with the [registerVehicle](https://tk-scripts.gitbook.io/docs/tk_mdt/exports/server.md#registervehicle) and [registerWeapon](https://tk-scripts.gitbook.io/docs/tk_mdt/exports/server.md#registerweapon) exports
* Fining through the MDT uses your billing script's export, added to `FinePlayer`
* Liberty City or custom maps work after converting the map image into tiles

### Database conversion and translations

* Convert an old tk\_mdt database with /convertmdt
* English, Finnish and French included, translatable

## Requirements

| Item      | Supported                                                                     |
| --------- | ----------------------------------------------------------------------------- |
| Framework | ESX, QBCore, Qbox. Another framework works after editing the framework files. |
| Database  | oxmysql or mysql-async                                                        |
| Inventory | ox\_inventory, qb-inventory                                                   |
| Target    | ox\_target (optional)                                                         |
| Languages | English, Finnish, French                                                      |

In-game photos need a [Fivemanage token](https://tk-scripts.gitbook.io/docs/tk_mdt/fivemanage-setup-for-images.md); fines need your billing script's export in `FinePlayer`. The CCTV, Jail and Dispatch pages need [tk\_cctv](https://tk-scripts.gitbook.io/docs/tk_cctv.md), [tk\_jail](https://tk-scripts.gitbook.io/docs/tk_jail.md) and [tk\_dispatch](https://tk-scripts.gitbook.io/docs/tk_dispatch.md), sold separately ([CCTV](https://tkscripts.com/scripts/cctv?utm_source=gitbook\&utm_medium=docs\&utm_content=mdt), [Jail](https://tkscripts.com/scripts/jail?utm_source=gitbook\&utm_medium=docs\&utm_content=mdt) and [Dispatch](https://tkscripts.com/scripts/dispatch?utm_source=gitbook\&utm_medium=docs\&utm_content=mdt) product pages). Every dependency and its start order: [MDT installation](https://tk-scripts.gitbook.io/docs/tk_mdt/installation.md#requirements).

[All-in-one MDT V2 product page](https://tkscripts.com/scripts/mdt?utm_source=gitbook\&utm_medium=docs\&utm_content=mdt)

## Start here

* [Install MDT](https://tk-scripts.gitbook.io/docs/tk_mdt/installation.md)
* [Update without losing your config](https://tk-scripts.gitbook.io/docs/tk_mdt/installation.md#update-without-losing-your-config)
* [Set up MDTs, pages and permissions](https://tk-scripts.gitbook.io/docs/tk_mdt/config.md)
* [Connect other resources with the server exports](https://tk-scripts.gitbook.io/docs/tk_mdt/exports/server.md)
* [Fix common problems](https://tk-scripts.gitbook.io/docs/tk_mdt/common-questions-and-problems.md)

Support: open a ticket in the [TK Scripts Discord](https://discord.gg/YndnF9tkqu).
