# openMDT

### 📌 Description

Opens the in-game MDT interface for the current player. Allows officers to search records, add BOLOs, write reports, and more.

### ✅ Usage

**Open MDT normally**

```lua
RegisterCommand("mdt", function()
    exports['kartik-mdt']:openMDT()
end, false)
```

**Open MDT with optional data**

```lua
local data = {
    page = "vehicles",   -- Optional: which page to open (e.g. "vehicles", "reports", "citizens")
    plate = "XYZ123"     -- Optional: if page = "vehicles", auto-load this plate
}

RegisterCommand("mdtvehicle", function()
    exports['kartik-mdt']:openMDT(data)
end, false)
```
