MDT
A Mobile Dispatch Terminal for roleplay agencies: a Discord bot and a live web board for EMS, police, fire or an agency you name yourself. People clock in from a Discord panel, the shift runs on the board. It's hosted, so you invite the bot, run the setup wizard and start.
- Hosting
- Hosted at mdt.npdev.eu
- You need
- A Discord server you can add a bot to, and a browser
- Admin
- Discord admins and the extra admins you set run the setup,
/paneland/apikey - Access
- Discord login, members with your employee role
- Instances
- One per Discord server, fully separate
- Modules
- 17, each switchable, plus the time clock
- Templates
- EMS, police, fire, neutral
- Languages
- Interface in German. np_mdt in German and English
- API
- JSON over HTTPS, OpenAPI 3.1 and a Postman collection
- np_mdt
- v0.3.0, optional, no hard dependencies

The web board and the np_mdt NUI. The MDT's interface is in German, so the captions translate the labels you see.
What's in it
Discord and the web board read and write the same data, live. Every Discord server is its own instance with its own data, settings and terms.
Stempeluhr (time clock)
- A Discord panel to clock in, clock out, take a break and go on standby. It shows the current dispatchers and units and updates live.
- Badge numbers come from Discord nicknames, e.g.
[MD-04] Marlow, in a format you set. - Warning and auto clock-out times, statistics with charts posted to Discord on a schedule, and
/mystatsfor everyone.
Dispatch and incidents
- Leitstellenblatt: who's on duty, units, crews and statuses, live for everyone.
- Einsätze: incident sheets with a map of Los Santos, people involved, a timeline and handover.
- Calls from the game wait on the board until a dispatcher takes them as an incident or dismisses them.
Facility and patients
- Buildings, rooms and beds, or cells and bays, depending on your terms.
- Person files with triage, location, history and notes, plus queue tickets at the counter.
- Verletzungen: injuries marked on a 3D body model. With np_mdt, injuries, treatments, vital signs and ECGs arrive from the game.
Records
- Bürgerregister: citizen records. Which fields others see is decided by the owner's sharing rules.
- Fallakten: case files that go beyond a single incident (opt-in).
Personnel and training
- Personal: staff, ranks, qualifications and your own columns.
- Kalender: absences, appointments and reminders with Discord notifications.
- Kurse: courses with configurable sign-up fields and pass or fail actions.
Documents and admin
- Dokumente: guidelines, forms and letterheads with read rights and public read links.
- Listen: free-form lists with your own columns and counters.
- Lager for stock and withdrawals, Versicherungen for insurance contracts, quotas and billing.
Your public face
- Websites: a public site for your agency, or internal pages only for your members (opt-in).
- Postfach: applications and contact requests from Discord, handled as cases (opt-in).
- TV: presentations for in-game screens, with live slides.
In the game, with np_mdt
- Calls to dispatch, unit status and a panic button, clocking in on duty, ranks from job grades.
- The real web MDT as an in-game tablet with
/mdtorF10. - An optional medical simulation with treatment, minigames, transport and a hospital.
A closer look
The 17 modules
The time clock is always on. Every other module is switched on or off per server, and a module that's off disappears from the navigation and from the API. The three opt-in modules start switched off because they need setup first.
| Module | What it is |
|---|---|
| Leitstellenblatt | Dispatch board: who's on duty, units, crews, statuses, live for everyone |
| Einsätze | Incident sheets with a map of Los Santos, people involved, timeline and handover |
| Bürgerregister | Citizen records, fields visible according to the owner's sharing rules |
| Fallakten | Case files beyond a single incident (opt-in) |
| Einrichtung | Buildings, rooms and beds (or cells, bays …), patient files |
| Verletzungen | Injury marking on a 3D body model |
| Personal | Personnel sheet: staff, ranks, qualifications, your own columns |
| Kalender | Absences, appointments and reminders with Discord notifications |
| Kurse | Courses with configurable sign-up fields and pass / fail actions |
| Module | What it is |
|---|---|
| Dokumente | Guidelines, forms, letterheads, read rights and public read links |
| Postfach | Applications and contact requests from Discord as cases (opt-in) |
| Statistik | Leaderboards and charts, posted to Discord on a schedule |
| Listen | Free-form lists with your own columns, including counters |
| Lager | Stock and withdrawals |
| Versicherungen | Insurance contracts, quotas and billing |
| Websites | A public website for your agency (opt-in) |
| TV | Presentations for in-game screens, with live slides |
Your agency, your words
The UI never hard-codes "patient", "unit" or "station". It uses your instance's terms, each with a singular and a plural. The setup wizard starts from one of four templates, and every term, module and the badge prefix can be changed later.
| Template | Unit | Facility | Person | Badge |
|---|---|---|---|---|
| Rettungsdienst (EMS) | Einheit | Einrichtung | Patient | MD |
| Polizei (police) | Streife | Wache | Insasse | PD |
| Feuerwehr (fire) | Fahrzeug | Feuerwache | Betroffener | FD |
| Neutral | Einheit | Einrichtung | Person | none |
Fifteen terms in all, from building, room and bed to course, dispatcher and documents. The police template leaves out the injuries module.
Permissions and partner agencies
Access is built from capabilities such as einsatz.sheet.close or documents.template.create. A person gets everything that applies to them: ranks linked to Discord roles, ranks set by hand or by the game server, departments, all staff, and the dispatcher seat while they hold it. A suspension replaces normal rights with the ones you set for it.
Instances can cooperate, for example EMS with the police. An admin proposes it, the partner's admins get a Discord DM and accept, and then each side decides per module what it shares:
| Level | What the partner gets |
|---|---|
| Keine Freigabe | Nothing. The default |
| Nur anonymisiert | Knows an entry exists. Names and details never leave the server |
| Lesen | Can open the sheet but not change it |
| Lesen & Schreiben | A shared incident, run together |
Redaction and visibility are enforced on the server. Handing a patient to a partner is an explicit handover step, and a cooperation can be suspended, resumed or revoked.
Set it up
Getting started
You need a Discord server and a browser. Nothing to download, nothing to host.
- Invite the bot from mdt.npdev.eu/invite. It greets whoever added it with a link to the setup wizard for this server.
- Run the setup wizard after logging in with Discord: template, name and icon, badge format, terms, modules, and optional sample data. Sample data only goes into areas that are still empty.
- Pick the employee role in the settings. Members with it can open the web board. Clocking in needs the badge in the nickname, e.g.
[MD-04] Marlow. - Publish the panel in the channel where people should clock in:
/panel - Open the board at mdt.npdev.eu/dispatch, log in with Discord and pick your server. Ranks, modules and terms are under Einstellungen (settings).
| Command | Who | What it does |
|---|---|---|
/panel | Admin | Publish the time clock panel in this channel |
/setup | Admin | Statistics channels and schedules, warning and auto clock-out times |
/stats | Admin | Public statistics, optionally with charts |
/mystats | Everyone | Your own statistics, only visible to you |
/apikey | Admin | Create, list and delete API keys |
/apidocs | Admin | A short API reference inside Discord |
np_mdt: connect your FiveM server
Optional. One resource, one module per use case, switched on in config/core.lua. It has no dependency entries: ESX, qb-core / Qbox, ox_inventory, ox_target, ox_lib and oxmysql are used when running, built-in fallbacks cover the rest. Players need a linked Discord account, because the MDT matches them by Discord id.
| Module | What it does in game |
|---|---|
dispatch | Calls from other resources, /notruf and optional resident reports of shots and crashes. Assigned units get a blip and a route |
funk | /status for your unit, bindable status keys and a panic button |
tablet | The real web MDT in game with /mdt or F10, logged in through a one-time link |
ranks | Job grades become InGame ranks in the MDT |
timeclock | On duty in game means clocked in in the MDT |
kiosk | A queue ticket machine with /wartenummer |
ausweis | A service ID card item that shows name, badge, rank and duty status |
medic | Syncs patients, injuries, treatments and vital signs. The simulation itself is off by default |
- Copy the
np_mdtfolder intoresources/and keep the name. - Create an API key with
/apikey create, or a scoped key for the modules you use, and add it toserver.cfgafter your framework:
Useset np_mdt_url "https://mdt.npdev.eu" set np_mdt_api_key "stmp_…" ensure np_mdtset, notsetr, so the key never reaches clients. - Pick your modules in
config/core.lua. By default onlymedicanddispatchstart. - Restart and check the console. At start the resource asks the MDT what its key may do and prints anything missing.
mdtstatusshows the full picture, andset np_mdt_environment "test"marks every call with[TEST].
HTTP API
Everything the MDT stores is reachable over a JSON API at https://mdt.npdev.eu/api/v1: for dashboards, spreadsheets, Discord webhooks or your own scripts. Keys belong to exactly one instance and are stored only as SHA-256 hashes. Scoped keys give a game server only what it needs.
# this week's leaderboard
curl -H "Authorization: Bearer $KEY" \
"https://mdt.npdev.eu/api/v1/stats/leaderboard?period=weekly"
# clock someone in by badge
curl -X POST -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{ "badge": 99 }' https://mdt.npdev.eu/api/v1/admin/clock-inWith np_mdt, server scripts such as alarms or robberies report calls to the board through a server-side export. Clients can't trigger it.
exports.np_mdt:ReportCall({
externalId = "robbery:fleeca-legion", -- same id = update
kind = "alarm", -- notruf | panik | alarm | hinweis
priority = 1,
title = "Stiller Alarm Fleeca Bank",
location = { x = 149.9, y = -1040.5, street = "Vespucci Blvd" },
})Questions
Do I need my own server?
No. The bot and the web board are hosted at mdt.npdev.eu. You invite the bot and run the wizard. A FiveM server is only needed if you want np_mdt in the game.
Is it in English?
The MDT's interface is German. The docs are in English and gloss the German labels. np_mdt's player-facing texts ship in German and English (Config.Locale).
Can we use it as a police or fire department?
Yes. Pick the Polizei, Feuerwehr or Neutral template in the wizard, or change the terms later: unit, facility, person, course and the rest are all yours to name.
Who can open the web board?
Members of your Discord server with the employee role you pick. Without a role, only server admins and the extra admins you set get in. What each person sees depends on their ranks and capabilities.
Can the police see our patient files?
Only if you agree to a cooperation and share that module. Each side picks per module: nothing, redacted, read or read and write. The default is nothing.
What if we want to stop?
The server owner can delete the instance under Einstellungen. That deletes all of the server's data, removes the bot's own messages where Discord allows it, and makes the bot leave.
Does np_mdt replace my ambulance script?
Only if you turn on the medical simulation, which is off by default. Then it detects ambulance scripts like esx_ambulancejob or qbx_medical and stops them, or refuses to start. Without the simulation, np_mdt just syncs to the MDT.
Works well with

Invite the bot, run the wizard, done.
Setup, permissions, the API and np_mdt are in the docs.