Configuration
Page dedicated to how to configure our Mechanic MDT [V2]
Languages
The language of the tablet is set inside Config.NUI.
en-US: Englishfr-FR: Frenchpl-PL: Polishde-DE: Germanes-ES: Spanishpt-PT: Portugueseja-JP: Japaneseit-IT: Italianko-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./badgeworks as a short alias./bodycam: Toggle the bodycam overlay./showbodycamand/hidebodycamforce 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./qf_mdt_mechanic_v2_alert_accept(Z): Accept the latest job on screen./qf_mdt_mechanic_v2_alert_dismiss(O): Hide the latest job on screen, for you only./qf_mdt_mechanic_v2_alert_expand(J): Show the details of the latest job on screen./mechlocation [note]: Report your position to the workshop./mechpanic [note]: Panic button, off by default.
Citizens
/913 <what happened>: Call a mechanic or a tow.
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.
Job & Ranks
Config.Jobs decides which framework jobs may open the tablet (see Several workshops on one tablet below), and Config.Grades supplies the rank labels shown inside it. The id values must match the grade integers in your framework.
Several workshops on one tablet (Config.Jobs)
One resource can serve more than one workshop, each with its own name, colour, ranks, society and radio codes. With a single job nothing changes and there is nothing to configure:
To describe a workshop, replace true with a table. Every field is optional and falls back to the matching global setting, so you only write down what differs:
The full list of fields is documented above Config.Jobs in config/config.lua (name, colour, logo, grades, requiredGrades, society, officers, billingLimits, bodyCam, dispatchUnits, vehicles, stations, sharedWith and more).
sharedWith is directional: ['mechanic'] = { sharedWith = { 'bennys' } } lets mechanic see bennys's workers on the list and the map, not the other way round. Set it on both sides for mutual visibility, or use sharedWith = true to see every job.
What is kept per job (Config.PerJobData)
The modules set to true keep their rows per job; announcements, radio codes, gallery, audit log and repair tasks are kept apart per workshop. With one job nothing changes, everything already in the database is handed to it on the first start.
dispatch = false is one shared dispatch for every job, which is how the tablet has always worked, and it defaults to false when the key is missing. Set it to true and each workshop gets its own calls, patrols, units and actions. Calls raised from the tablet or with the quick commands belong to the workshop that raised them; automatic alerts, the civilian line and calls from other resources stay visible to everyone. Patrols and boards follow sharedWith only when it is set on both sides.
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.
QF Banking V2 Billing (Config.Integrations)
The tablet can use the billing of our Banking [V2] as the place where its price list lives and where its bills are issued and paid. It is off by default; without it nothing changes.
In the bank: Admin → Billing → Service tablets, switch on mechanic, pick its billing faction (your
mechanicjob) and keep the resource nameqf_mdt_mechanic_v2. On the first switch-on the bank copiesConfig.FineList(exportGetFineCatalogue) into the faction's tariff.In
config/config.lua:
While both are on:
the invoice list in the tablet is the faction's tariff from the bank, refreshed in open tablets when it is edited there,
an invoice is issued as one bank invoice priced by the bank's tariff on the server; the prices sent by the tablet are not used. Custom items become custom lines, accepted when the faction allows them in the bank.
Config.Billingsis not used for these invoices, and the client does not have to be online,the tablet keeps its own history (
qf_mdt_mechanic_v2_fines.bank_bill_id, added automatically) and shows each invoice's status from the bank: awaiting acceptance, unpaid, paid, rejected or canceled,deleting or clearing invoices cancels their bank invoices that are still open. Paid invoices stay paid.
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
Calls
Everything below lives under Config.Dispatch in config/config.lua. Every option falls back to a default, so a config copied from an older version still runs.
Job life cycle
A job moves new → accepted → on scene → closed, and closing asks for a reason that stays in the archive. The card lists who took it and with which unit.
Reason labels come from the translations (dispatchCloseReason<Name>); a reason without a key shows its raw name.
Priorities
One priority drives the chip colour, the list order, the blip size on the map and the sound. A broken car is not a life-threatening emergency, so the tablet ships low, medium and high without critical; add it back if your workshop runs roadside rescue. DefaultPriority = 'medium' is used for alerts that arrive without one.
Emphasis gives the alert types on its list the loudest treatment: a red frame on screen, a larger pin on the map and a marked card. It is off by default on the mechanic tablet (Emphasis.enabled = false).
Creating a job from the tablet
Grade limits are checked on the server as well, not only by hiding the button.
Callers, archive and quick keys
Closed jobs are archived in the database (created automatically) and can be searched by title, code and street, filtered by priority and reason. Quick keys act on the newest on-screen alert without opening the tablet.
Worker commands
Both take an optional note. Name, badge and position are read on the server. The panic button ships disabled: a workshop is not an emergency service, so turn it on only if your crew does roadside recovery where it matters.
Civilian line — /913
Every entry in Lines is a separate command with its own code, priority and anti-spam counters. forwardTo sends a copy to other QF tablets, so one number can dispatch two services at once. A workshop bills the caller, so anonymous calls are off (allowAnonymous = false, allowAnonymousFlag = false).
Interface
Other useful options:
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

