Skip to main content

Starter documents

Every character that never had a document of the listed types gets one after loading, as soon as its name and date of birth are set.
Starter documents have no photo: the photo is taken at the office with a renewal. Set documents = {} to turn this off.

Citizen offices

An office is an NPC at a counter, with a blip on the map. Each office handles the document types it lists. Players can:
  • Apply for a first document
  • Renew it: same number, new expiry and photo (the document must be carried)
  • Get a replacement when it was lost or stolen: new number, the old one becomes invalid
  • Report a document lost or stolen, or report it found again
  • Hand in their own cards that are no longer valid
  • Add a class gained after the card was printed (runs a renewal)
The photo is taken at the counter. A suspended, revoked or seized document blocks the counter for that type. Badges are never issued here, the boss of the job does that.
A card that isn’t the player’s own gets the same answer whether it belongs to someone else or is forged, so the office can’t be used to test forgeries.

Configuration

Offices are set in Config.Offices (config/office.lua), or placed in game on the office page of /documents config.
Fees are paid only after the photo and the issue succeed.
You can open one office per authority, for example a DMV counter that only handles drive and a police counter that only handles weapon.

esx_dmvschool (ESX only)

esx_dmvschool adds the licence after a passed test but hands out no card. With Config.DmvSchool on:
  • the first driver licence is issued right after the test, with a photo taken there and no fee (the school charged already)
  • a class passed later is printed on the licence the player carries (same number, expiry and photo)
  • without the card on them, the player is told to visit the office, which adds it
The event esx_dmvschool:addLicense is not checked on the server by esx_dmvschool, so a cheating client can grant itself any licence with it. Secure the event in esx_dmvschool, or set Config.DmvSchool.enabled = false, on a live server.

QBCore and Qbox city hall

On the QBCore version, what qb-core, qbx_core and qb-cityhall / qbx_cityhall hand out becomes a registered document of the character. qbx_cityhall issues it with a photo taken there. On Qbox, remove qbx_idcard: Jaksam Identity answers in its place.