ID Cards & Licenses

Overview

Players buy official documents (ID card, driver license, or any document you add) from an NPC. Each document is a real item with the player's photo and details; using it shows the

View in store

Players buy official documents (ID card, driver license, or any document you add) from an NPC. Each document is a real item with the player's photo and details; using it shows the card to everyone nearby. Police can suspend or warn driver licenses, with a full history log.

Features

  • Document shop NPC(s) with blips – any number of document types in config.lua
  • Cards with photo, name, date of birth, sex, nationality, issue and expiry date
  • Expired documents get a red "EXPIRED" stamp
  • Use the item to show it to players around you (use again to put it away)
  • Police license database: nearby citizens, Valid / Warning / Suspended with end date, history log
  • Suspensions and warnings expire automatically
  • Discord webhook for every license change (server_config.lua)
  • Everything validated on the server: item type, price, payment method, distance, police job
  • Database tables are created automatically

Requirements

ResourceRequired
ox_lib (opens in a new tab)Yes
oxmysql (opens in a new tab)Yes
A framework (qb-core / qbx_core / es_extended)Yes
An inventoryYes – ox_inventory, qb-inventory, qs-inventory or your framework's inventory
MugShotBase64Optional – player photo on the card (bridge/mugshot/client.lua for others)
A target scriptOptional – falls back to a built-in "press E" prompt

Last updated