Skip to content

Better system for police patrols (QBCore)

Notifications You must be signed in to change notification settings

LeSiiN/qb-platescan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 79.6%
  • CSS 9.7%
  • JavaScript 8.6%
  • HTML 2.1%