This script allows officers to quickly scan plates while patroling. Scanning attempts check for bolos, stolen status, and warrants within ps-mdt. If a vehicle is not owned by a player, than it will generate a name and store it server-side for later use. With the optional snippet from step 5, non-owned vehicles that are stolen have a chance to get marked as flagged.
Make sure this script starts after qb-phone & wk_wars2x
- Download source files from github
- Drag into resources folder
- Replace
cl_plate_reader.lua
in wk_wars2x - Add export to qb-phone for disabling scanning spam
- Add event to vehicle keys script (Optional)
- Add this export to qb-phone/client/main.lua
local function IsPhoneOpen()
return PhoneData.isOpen
end exports("IsPhoneOpen", IsPhoneOpen)
- Add this to your vehicle keys script and match up your variables (somewhere after a successful hotwire)
TriggerEvent("qb-platescan:client:AddStolenPlate", vehicle, plate)
After wk_wars2x plate reader display is toggled, use left mouse click to scan vehicle plates.
- Thanks to Linden for linden_outlawalert