Kartik Scripts

wk_wars2x Plate Reader

Kartik MDT V2 works with the Wraith ARS 2X radar and plate reader. Every plate the reader picks up is checked against the MDT, so officers on patrol get an alert when a car is flagged, stolen or wanted, or when its owner has an active warrant.


✅ Setup

There is nothing to install. Start wk_wars2x on your server and the MDT detects it on its own:

ensure wk_wars2x
ensure kartik-mdt

When the MDT starts you will see [MDT Bridge] Detected Radar: wk_wars2x in the server console.

You do not need to edit any wk_wars2x files. The MDT listens to the plate reader's own scan and lock events.


🚨 What officers get

Only players who are on duty and have the View Vehicles permission in their department get plate checks.

Plate reader actionWhat happens
A plate is scanned (front or rear camera)The plate is checked quietly. If it is a hit, the officer gets a Plate Reader Hit notification, an ALPR Hit dispatch call is created in the MDT (when useDispatchAlert is on) and the camera locks with the BOLO sound. Clean plates show nothing.
The officer locks a plate (Numpad 9 front / Numpad 6 rear)The officer gets the plate's MDT record: model, registered owner, vehicle status, flag reason and warrant status. Unknown plates show "no registration on file". A hit also creates the dispatch call, unless it was already sent for that plate in the last 60 seconds.

The ALPR Hit dispatch call (code 10-37) goes to police units in the MDT dispatch, with the plate, vehicle, reason (flag, status or warrant) and the officer's position at the time of the scan.

A plate counts as a hit when:

  • the vehicle is flagged in the MDT (Vehicles page), or
  • its MDT vehicle status is Stolen or Wanted, or
  • the registered owner has an active warrant.

The same plate will not alert the same officer again for 60 seconds, so driving behind a flagged car does not spam notifications.

Example hit notification:

SULTAN1 (front) | Sultan | Owner: John Doe | FLAGGED: Armed robbery | Owner has an active warrant

⚙️ Options

The options are at the top of bridge/radar/server/wk_wars2x.lua inside your MDT folder:

local WarsConfig = {
    useDispatchAlert = true,
    checkScanned = true,
    checkLocked = true,
    autoLockOnHit = true,
    alertFlagged = true,
    alertWarrant = true,
    alertStates = { stolen = true, wanted = true },
    realertSeconds = 60,
    cacheSeconds = 15,
    text = { ... },
}
OptionDefaultDescription
useDispatchAlerttruetrue = a hit also creates an ALPR Hit call in the MDT dispatch. false = the officer only gets the on-screen notification.
checkScannedtrueCheck every scanned plate and alert on a hit.
checkLockedtrueShow the MDT record when an officer locks a plate.
autoLockOnHittrueLock the reader camera and play the BOLO sound when a scanned plate is a hit.
alertFlaggedtrueVehicles flagged in the MDT count as a hit.
alertWarranttrueA registered owner with an active warrant counts as a hit.
alertStatesstolen, wantedMDT vehicle statuses that count as a hit. You can add impounded, abandoned, evidence or recovered.
realertSeconds60Seconds before the same plate alerts the same officer again.
cacheSeconds15Seconds a plate result is reused, so many officers scanning the same car do not repeat the lookup.
textEnglishThe notification texts. Translate them here.

Restart the MDT after changing an option.

Client exports

ExportReturnsDescription
exports['kartik-mdt']:GetRadarState()stringThe state of wk_wars2x ('started', 'stopped', ...).
exports['kartik-mdt']:ToggleRadar()nothingOpens the Wraith ARS 2X remote (same as the radar_remote command). Only works inside a vehicle the radar supports.

❓ FAQ

Officers get no alerts

  • Make sure the officer is on duty and their rank has View Vehicles in Department Settings.
  • Make sure the plate reader display is turned on in the radar remote. The reader only scans while it is shown.
  • Check that the plate is flagged, marked Stolen or Wanted, or that the owner has an active warrant.

Only player-owned cars are checked

In wk_wars2x/config.lua, CONFIG.use_sonorancad = true makes the plate reader only report player vehicles. Set it to false if you want every vehicle checked.

Can I use plate lookups in my own scripts?

Yes, see the Lookup Plate and Has Active Warrant server exports.

On this page