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

Configuration

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

Languages

The language of the tablet is set inside Config.NUI.

  • en-US: English

  • fr-FR: French

  • pl-PL: Polish

  • de-DE: German

  • es-ES: Spanish

  • pt-PT: Portuguese

  • ja-JP: Japanese

  • it-IT: Italian

  • ko-KR: Korean

Config.NUI = {
    defaultLangCode = "en-US",
    -- Languages offered in the tablet's own language switcher.
    langs = {
        { code = "en-US", name = "English", iconUrl = "https://.../gb.webp" },
        { code = "pl-PL", name = "Polski",  iconUrl = "https://.../pl.webp" },
    }
}

Commands & Keybinds

General

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

  • /qf_mdt_mechanic_v2badge (B): Show/Hide Employee Badge. /badge works as a short alias.

  • /bodycam: Toggle the bodycam overlay. /showbodycam and /hidebodycam force one state.

Dispatch

  • /qf_mdt_mechanic_v2_fastgps (E): Set the GPS to the latest dispatch alert.

  • /qf_mdt_mechanic_v2_dispatch (HOME): Open the MDT straight on the dispatch page.

Camera Mode

  • /qf_mdt_mechanic_v2_capturephoto (ENTER): Start capturing a photo.

  • /qf_mdt_mechanic_v2_blocknuifocus (L-ALT): Block the NUI focus.

  • /qf_mdt_mechanic_v2_cameratakephoto (SPACE): Take the photo.

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

  • /qf_mdt_mechanic_v2_cameratoggleflashlight (F): Toggle camera flashlight.

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

Note: Both the keys and the command names come from Config.ToggleMDT, Config.Camera, Config.Badge and Config.Dispatch in config/config.lua — the names above are the defaults.


Job & Ranks

Config.Jobs decides which framework job may open the tablet, and Config.Grades supplies the rank labels shown inside it. The id values must match the grade integers in your framework.

Society & Billing

Config.Billings and Config.Banks are long lists of supported third-party billing and banking resources — set exactly one entry in each to true to bridge invoices and society money into the resource you already run. Leave everything false to use the framework's own society account.

Service Price List

Config.FineList drives the price list used when issuing an invoice. The categories and their items are entirely yours to change.

Config.BillingLimits caps how much a single invoice may be worth, per grade.

Repair Jobs (Config.Tasks)

The tablet generates repair jobs around the map that employees can accept from the Tasks page. A job spawns a client vehicle with a specific fault, and the employee has to carry out the steps on the right part of the car.

Adding your own fault type

Every entry in Config.Tasks.IssueTypes describes what is broken on the vehicle and the steps needed to fix it. targetBone decides where the employee has to stand, and action decides what the step actually repairs.

labelKey is a translation key — add it to config/translations/*.lua if you introduce a new one, otherwise the raw key is displayed.

Dispatch

Interface

Other useful options:

Option
Description

Config.UseFrameworkNotifications

Route notifications through your framework instead of the built-in ones.

Config.Mugshot

autoTake and uploadType (localfiles or fivemanage).

Config.CitizenLicenses

Which licenses employees may view, grant and revoke, and from which grade.

Config.Vehicles / Config.Map

Workshop locations and the vehicle classes tracked on the live map.

Config.UsableItems

Items that open the tablet from the inventory.

Config.SSN

Which database column is used as the citizen identifier.

Config.Customization

Additional cosmetic tweaks of the interface.

Config.Debug

Debug prints in the server console.

Running several tablets side by side (Config.Base)

Every module stores its data in its own MySQL table, named after the resource (qf_mdt_mechanic_v2_*). Config.Base lets you point any module at a different table, so a second workshop tablet can share selected data — the client records or the price list, for example — while keeping its own employees, announcements and radio codes.

Last updated