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
wk_wars2x/config.lua
Find this line:
CONFIG.use_sonorancad = false
Change it to:
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
wk_wars2x/cl_plate_reader.lua
π§ Function: READER:SetBoloPlate(plate)
READER:SetBoloPlate(plate)
Update the function to:
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()
READER:ClearBoloPlate()
Update the function to:
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.
Last updated