Installation

From Keymaster to a running resource

Five minutes from Keymaster to a running resource. Read the dependencies first — nine out of ten support tickets are a missing ox_lib.

Install it

  1. Download the resource

    Download va_policemdt.zip from your Cfx Keymaster and unzip it into resources/[va].

    The folder must be named va_policemdt — rename it if it unzips under a different name (e.g. with a version number). The script will not start under any other name.

  2. Add it to server.cfg

    Order matters — ox_lib and oxmysql must start before the tablet.

    server.cfg
    ensure ox_lib
    ensure oxmysql
    ensure va_policemdt
  3. Restart and log in

    Restart the server. Join as a police job and press O — the tablet should open. On first run, set the terminal up with /mdtsetup.

Dependencies

Install these before the tablet. Versions below are the minimums we test against.

ResourceVersionRequired
ox_lib3.20.0Yes
oxmysql2.9.0Yes
es_extended1.9.0Yes
screenshot-basic—Optional — mugshots

Configuration

config.lua is plain text and escrow-free. Edit it before the first start.

config.lua
Config = {}

Config.Locale        = 'da'
Config.OpenKey       = 'O'
Config.AllowedJobs   = { 'police', 'sheriff', 'pet' }
Config.RequireOnDuty = true

Config.Modules = {
  records  = true,
  warrants = true,
  anpr     = true,
  dispatch = true,
  reports  = true,
}

Turn a module off and its tab disappears from the tablet for every officer — no client cache to clear.

Troubleshooting

Tablet does not open

Your job name is not in Config.AllowedJobs, or RequireOnDuty is on and you are off duty.

Records list is empty

The tables were not created. The resource creates them itself on first start — check the server console for an oxmysql error on start and restart the resource.

Citizen records are empty

Your users table is missing the ssn column. Run the migration from Første login.

Still stuck

Open a ticket in the Discord with your config and console output. Median reply is four hours.