LeSiiN / qb-platescan

Better system for police patrols (QBCore)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qb-platescan

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.

Dependencies

Installation

Make sure this script starts after qb-phone & wk_wars2x

  1. Download source files from github
  2. Drag into resources folder
  3. Replace cl_plate_reader.lua in wk_wars2x
  4. If using qb-phone, add export to disable scanning spam
  5. Add event to vehicle keys script (Optional)

Add phone export:

  • Add this to qb-phone/client/main.lua
local function IsPhoneOpen()
    return PhoneData.isOpen
end exports("IsPhoneOpen", IsPhoneOpen)

Add vehicle keys event: Optional

  • Add this to your vehicle keys script and match up your variables (somewhere after a successful hotwire)
TriggerEvent("qb-platescan:client:AddStolenPlate", vehicle, plate)

Usage

After wk_wars2x plate reader display is toggled, use left mouse click to scan vehicle plates.

Credits

About

Better system for police patrols (QBCore)


Languages

Language:Lua 79.6%Language:CSS 9.7%Language:JavaScript 8.6%Language:HTML 2.1%