Server Exports
These exports are called server-side to fetch MDT records, manage warrants, fake profiles, and dispatch incidents.
exports['kartik-mdt']:ExportName(...)Available Server Exports
- Get Officer Info: Returns the MDT officer profile for an online player.
- Get Citizen: Fetches a citizen's MDT profile (works online & offline).
- Search Citizens: Performs a partial-match search across names and Citizen IDs.
- Lookup Plate: Retrieves owner details, vehicle state, and flag data for a plate.
- Get Warrants: Returns active or historical warrant records.
- Get Penal Codes: Returns penal code categories and entries.
- Has Active Warrant: Checks if a citizen has an active warrant.
- Is Fake Profile: Checks if a citizen ID belongs to a fake profile.
- Get Fake Profile: Retrieves details of a fake/undercover profile.
- Create Fake Profile: Registers or updates a fake/undercover profile.
- Delete Fake Profile: Deletes a fake/undercover profile.
- Create Call: Generates a new dispatch / 911 call.
- Reply To Incident: Appends an update message/reply to an active call.
- Is Registered Dept Job, Checks if a job name is a registered MDT department.
- Invalidate Dept Cache, Rebuilds and invalidates the department job cache.
- Create Weapon Info: Registers a new weapon in the database.
Tablet Apps (External UI)
Other resources can put their own UI inside the MDT tablet, so players carry one tablet instead of several. A registered app shows up in the MDT navigation like any other tab.
Get Officer Info
Returns the MDT officer profile for an online player. This is useful for fetching the callsign, rank, or department of an active duty officer.