For the complete documentation index, see llms.txt. This page is also available as Markdown.

Installation

Page dedicated to how to install our DOJ MDT [V2]

Step #1 - Drag & Drop

Just Drag & Drop the qf_mdt_doj_v2 folder into your resources folder.

Step #2 - SQL Installation

There’s no need to manually insert any SQL file into your database. Our script creates every table on first launch, and updates only ever add what is missing, so restarting or updating the resource never drops your data.

Step #3 - Job

By default the tablet opens for the job named doj. If your court uses another job name, change it in Config.Jobs and Config.Society (see Configuration).

Step #4 - Items (optional)

The tablet, court IDs, court papers and identity cards can be inventory items. Item definitions for ox_inventory are in ox_inventory_items.md inside the resource. On qb-inventory, ps-inventory, codem-inventory, tgiann-inventory and qs-inventory use that inventory's own item format with the same names and unique = true, useable = true, shouldClose = true.

Court IDs are cards with an owner by default (Config.Badge.item.mode = "owner"), so the item qf_mdt_doj_v2_badge has to exist in your inventory. Without it the card works the simple way: the item and the key show the card of whoever uses them.

Step #5 - Script start

Make sure oxmysql and your framework start before the MDT:

If you also run our Police MDT [V2], start it before the DOJ MDT so the bridge finds its tables on the first check:

The order is a convenience, not a requirement: the bridge checks again on every poll.

Step #6 - Admin permissions

Two admin commands are protected by aces. Add them to your server.cfg:

After the first start run /mdt doctor. It checks your configuration and tells you which option to fix, for example a picture missing from artwork/ or an option that no longer exists.

Requirements

  • ESX, QBCore or QBox (detected automatically)

  • oxmysql

  • FiveM server build 4752 or newer

  • screenshot-basic for the identity photo booth and gallery photos. Without it cards use the stored mugshot instead.

Optional:

  • ox_inventory, qs-inventory, tgiann-inventory, codem-inventory, ps-inventory or qb-inventory for papers and cards as items

  • ox_target or qb-target for the e-office clerk and the photographer. Without them a key prompt on E is used.

  • qf_mdt_police_v2 for the bridge that turns police charges into DOJ cases

The DOJ MDT streams no assets of its own. It uses the base game tablet prop, which you can change in Config.Tablet.

Last updated