Skip to main content
1

Prepare your database

The MDT needs a modern database engine to create its tables correctly. Use one of these versions or newer:To check your version, run this query in HeidiSQL:
We strongly recommend HeidiSQL with a standalone MariaDB server instead of XAMPP. XAMPP ships an old, modified MariaDB build that can break parts of the script.
Before you start the script, delete any old MDT tables left behind by another MDT resource (tables whose name starts with mdt_). If a table with the same name already exists, the script can’t create its own schema and some features won’t work.
Upgrading from redutzu-mdt V2? Keep your tables. The script migrates V2 data automatically on first start.
2

Install all dependencies

Download and install the following dependencies:
3

Add the items

The MDT uses five inventory items. It doesn’t create them, so add them to your inventory. The [items] folder included with the script has ready-made definitions and images.
Add the items to ox_inventory/data/items.lua:
ox_inventory/data/items.lua
Copy the images from [items]/images to ox_inventory/web/images.
Keep the server.export line. It’s how ox_inventory hands the item to the MDT. The format is <resource folder>.<item name>, so update it if you rename the resource or an item.
Tape and markers use the Scene page of the interactions menu by default. To use the items too, set TapeMethod and MarkerMethod to 'item' or 'both' in Config.Police.Scene, or in Field in /mdtadmin.
4

Add the script to your server.cfg

Start the prop resource before the MDT. We suggest you start the MDT last.
server.cfg
5

Set up uploads

The MDT uploads recordings, screenshots, and gallery images to Fivemanage, Qbox, Discord, or your own provider.Open config/config.lua and choose your provider:
config/config.lua
Then open config/credentials.lua and paste your key next to that provider:
config/credentials.lua
Never put keys in config.lua. Players can read it.
Get 20% off for 3 months on Fivemanage with our referral link. To be transparent, we earn a small commission from it, which helps us bring you more awesome features.
See Media uploads for a step-by-step setup of each provider.
6

Start the script

Restart your server. The MDT creates its tables on first start, so there’s no SQL file to import. If you’re upgrading from an older version, the migration converts your existing data automatically.Once it’s running, use /mdtadmin in-game to configure the MDT. Changes apply instantly without a restart, sync to every player, and stay intact when you update the script.
/mdtadmin opens for the admin and god groups by default, set in Config.AdminGroups. On standalone servers, add add_ace group.admin redutzu_mdt.admin allow to your server.cfg.

Configure the MDT

See everything you can change from the /mdtadmin panel.