> For the complete documentation index, see [llms.txt](https://kartik-scripts.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kartik-scripts.gitbook.io/docs/deprecated-assets/kartik-mdt/faqs/wk_wars2x-configuration.md).

# wk\_wars2x Configuration

## 🚔 wk\_wars2x + Kartik-MDT Integration

This guide will walk you through integrating your **`wk_wars2x` plate reader** with the **`kartik-mdt`** system, enabling officers to set and clear BOLOs directly from the plate reader interface.

***

### 1️⃣ Enable SonoranCAD Mode

#### 📄 File: `wk_wars2x/config.lua`

Find this line:

```lua
CONFIG.use_sonorancad = false
```

Change it to:

```lua
CONFIG.use_sonorancad = true
```

> ✅ This ensures that the plate reader supports external CAD/MDT integrations.

***

### 2️⃣ Trigger BOLO from Plate Reader

#### 📄 File: `wk_wars2x/cl_plate_reader.lua`

#### 🔧 Function: `READER:SetBoloPlate(plate)`

Update the function to:

```lua
function READER:SetBoloPlate(plate)
	TriggerServerEvent("kartik-mdt:server:addBolo", plate)
	self.vars.boloPlate = plate
	UTIL:Notify("BOLO plate set to: ~b~" .. plate)
end
```

> 🟢 This sends the plate to the MDT server to mark it as a BOLO.

***

### 3️⃣ Clear BOLO from Plate Reader

#### 🔧 Function: `READER:ClearBoloPlate()`

Update the function to:

```lua
function READER:ClearBoloPlate()
	TriggerServerEvent("kartik-mdt:server:clearBolo", self.vars.boloPlate)
	self.vars.boloPlate = nil
	UTIL:Notify("~b~BOLO plate cleared!")
end
```

> 🟢 This removes the plate from the MDT's BOLO list.

***
