np_documents
Identity cards, licences and player qualifications in the San Andreas card style. Players can progress through career paths, attend training, pass server-graded exams and receive certificates with expiry, renewal and status controls. The resource continues the former np_identification system; its legacy exports and events remain available.
- Version
- 2.0.0
- Frameworks
- qbx, qb, ESX, standalone
- Dependencies
- oxmysql, np_npchandler 1.1.0+, np_prophandler
- Database
- Tables created on start
- Inventory
- np_inventory, ox_inventory, qb-inventory (ps / lj), or digital only
- Optional
- screenshot-basic or MugShotBase64, ox_target or qb-target, np_hud, np_phone
- Documents
- 14 built in, more in the designer
- Languages
- German, English
- Build
- Node 18+ to build the NUI once

Taken from the NUI in the browser at 1920×1080, with the German locale.
What's in it
Documents and certificates live in the database. Physical cards carry a serial and always resolve to the current record; qualifications can also be digital-only.
Cards and viewer
- Show, hand over, look yourself:
/ausweisor F6, with an animation and a card prop. - The viewer flips with F, tilts the hologram with the right mouse button and zooms with the wheel.
- Revoked, suspended, expired or lost cards get an inked stamp, even while the player still holds them.
- Stolen cards show the owner's data and photo, and fail the holder check.
Desks and clerks
- NPC desks from the config, or placed in game from the designer. Two ship: Bürgerbüro Los Santos and Ammu-Nation.
- Requirements, missing character data, an exam, a mugshot camera, a signature pad, cash or bank.
- Player clerks (
/lizenz): jobs and grades per document type, the recipient pays from the bank.
Police
- Document check: registry, holder, status, expiry, points, classes and warrants.
- Points with automatic suspension, suspensions with an end date, revocation and seizure.
- ID requests: a target option on players, answered with Y or N.
Badges
/badgeflashes your department badge with rank and callsign to everyone nearby.- Six designs: LSPD, BCSO, SAHP, LSMD, FIB and DOJ, set per job with a minimum grade.
- The service ID (or another document) is shown next to the badge.
Forgery and UV
- A black-market forger NPC sells fakes in three qualities, for cash only.
- Under the UV lamp genuine cards glow. No fake has the UV pattern or a registry entry.
Document designer
/iddesignerfor admins: drag-and-drop card layout, fields and their sources, rules, back side, exams and desks.- Drafts, publishing with a migration choice, version compare, rollback, JSON import and export.
Qualifications and career paths
- Set prerequisites, licence classes, on-duty hours, minimum rank, instructor sign-off and renewal rules per certificate.
- Certificates can be issued as physical cards or digital-only records with expiry, suspension, reinstatement and revocation.
- The np_phone Certs app shows current status, expiry, prerequisites and the next step in a qualification path.
Exams and instructor training
- Randomized theory tests and practical checkpoints are graded on the server, with time limits, retry cooldowns and result validity.
- Authorized instructors can schedule classroom sessions, record attendance, proctor exams and sign supervised practice logbooks.
- Practical exams can include optional np_minigames steps; a missing dependency cannot turn a required step into a pass.
Lifecycle
- Expiry reminders on the phone 7, 3 and 1 days before, online renewal, lost reports and replacements.
- A weapon registry on the back of the weapon licence, filled by your scripts.
- Audit log in the database and, with a webhook, to Discord.
Server-authoritative
- Positions, distances, permissions, ownership and money are checked on the server.
- Every NUI call goes through one rate-limited RPC dispatcher with validated parameters.
- Designer definitions and imports are validated on the server too.
A closer look
14 documents included
Ready to use from shared/documents.lua. Change any of them, or add your own, in the designer. Labels ship in German; the English in brackets is what each one is.
| Document | Validity | Fee | Issued by |
|---|---|---|---|
| Personalausweis (ID card) | 365 days | 150 | Desk, city clerks |
| Führerschein (driving licence) | Unlimited | 500 | Desk, driving school, police from grade 3. Classes and up to 8 points |
| Waffenschein (weapon licence) | 180 days | 2500 | Ammu-Nation desk, police from grade 3. Age 21, no warrant, weapon registry |
| P-Schein (taxi licence) | 90 days | 300 | Taxi job. Needs ID card and driving licence |
| Anwaltslizenz (lawyer licence) | 365 days | 1000 | DOJ |
| BTM-Schein (narcotics licence) | 90 days | 200 | Ambulance |
| Dienstausweis (service ID) | Unlimited | 0 | Police, ambulance, sheriff from grade 4. Agency and rank |
| Document | Validity | Fee | Issued by |
|---|---|---|---|
| Erst-Helfer-Schein (first aid) | 365 days | 100 | Ambulance |
| Jagdschein (hunting licence) | 365 days | 350 | Desk, ranger. Age 18 and an exam |
| Pilotenlizenz (pilot licence) | 365 days | 5000 | Desk, flight school. Age 18 |
| Bootsführerschein (boat licence) | Unlimited | 800 | Desk, with an exam |
| Gewerbeschein (business licence) | 365 days | 1200 | Desk, city clerks. Up to 3 active |
| Presseausweis (press pass) | 180 days | 0 | Weazel News |
| Approbation (medical licence) | Unlimited | 0 | Ambulance from grade 5 |
Plus a uv_lamp item that unlocks the UV check in the viewer. Job names like city, drivingschool or weazel are changed in the designer to match your server.
Applying at a desk
Walk up to the NPC and use the target option, or press E at the prompt. The prompt is hidden while a view is open or you are dead or cuffed. The live preview shows the finished card at every step.
- Document: the desk's offers with fee, validity and requirement status. Requirements are valid documents of other types, no open warrant, a minimum age, a passed exam and the number of active documents. Unmet ones block the offer.
- Data: values from your character, plus inputs for fields the type asks for and character data the framework doesn't have (for example height on qb).
- Exam: only when the type needs one. Two ship (hunting and boat, 80 % pass mark), more are made in the designer. A passed exam is remembered.
- Photo and signature: an in-world mugshot camera with three angles (front, left, right), a frame you drag and zoom to crop, and a signature drawn with the mouse or printed in a script font.
- Pay: cash or bank. The fee can go into a society account. Money is refunded if anything fails afterwards.
- Done: the card is in the inventory and in the phone wallet.
Police checks, points and suspension
/ausweispruefung checks the nearest player's card. Police jobs (police, sheriff, sahp, fib by default) must be on duty, and each document type sets what police may do with it.
| Check | Passes when |
|---|---|
| Registry | The serial exists. Forgeries fail here |
| Holder | The record belongs to the player in front of you. Stolen cards fail |
| Status | Valid. Suspensions show the end date and the reason |
| Validity | Not expired |
| Points | Below the type's maximum. Warns within 2 points of it |
| Classes | Shows the driving classes, or the type's first list field |
| Warrants | No open warrants, from your MDT through the warrant provider export |
| Key | Action |
|---|---|
| P · Points | 1 to 50 points with a reason. Points expire after 60 days. Reaching the maximum (8 on the driving licence) suspends the document for 14 days |
| S · Suspend | 1 to 3650 days with a reason, lifted automatically when the time is up |
| E · Seize | Takes the card from every player within 5 m (forgeries too) and revokes the record |
| R · Revoke | Marks the record as invalid |
The holder is notified of points, suspensions, revocations and seizures, also when not nearby. Every check is written to the audit log.
Forgery
A forger NPC with no blip sells fake ID cards, driving licences and weapon licences for cash. Players write any data they like and can use a photo of their current face.
| Quality | Default price | Tells |
|---|---|---|
| Billig (cheap) | $1,500 | 60 % typo chance per name field, wrong fonts, no hologram, no UV pattern |
| Ordentlich (decent) | $5,000 | 20 % typo chance, no hologram, no UV pattern |
| Profi (pro) | $15,000 | Looks real, with hologram. No UV pattern |
A fake has no registry entry, so a police check fails it. It can be shown, handed over and seized like a real card, but it isn't in the phone wallet and can't be renewed. Prices, typo chances and forgeable types are in the config.
The admin designer
/iddesigner edits every part of a document type. Changes are drafts until you publish them, and a published version reaches every client without a restart.
Design
- Drag elements onto the card: text, fields, photo, signature, image or logo, QR code, barcode, table, hologram, serial, expiry and icons.
- Grid, snapping with guides, undo and redo, keyboard nudging.
- Gradient colours, header, watermark, seal, corner icon and up to 3 logos.
Fields and rules
- Up to 40 fields from the character, the job, automatic values, fixed text or inputs at issue.
- Item, fee, society account, validity, online renewal, max active, max points, weapon slots, serial pattern.
- Who may issue, which desks offer it, requirements, exams and police permissions.
Desks and back side
- Place a new desk where you stand: name, NPC model and blip, live for every player right away.
- Five back templates: empty, address with MRZ, classes table, weapon registry or a field grid.
Versions
- Test in game opens the draft in the real viewer with your character's data.
- On publish, existing cards take the new design, keep the old one, or expire after a grace period for reissue.
- Compare two versions, roll back, import and export as JSON.
np_phone app
With np_phone running, np_documents registers the Dokumente app, installed by default.



- Card stack: valid cards in front, notices for expired, expiring, suspended or lost documents below.
- Detail: show the card digitally to the nearest player, renew online, report it lost or request a replacement.
- Applications: what you can apply for, what's missing, the fee and which desk to go to.
- Expiry reminders as phone notifications, and C in the viewer saves a photo of a card to the phone gallery (with screenshot-basic).
Without np_phone everything else works. Renewing, reporting lost and replacing need the app.
Set it up
Compatibility
Bridges are detected once at start. Only oxmysql, np_npchandler 1.1.0+ and np_prophandler are required; without a framework np_documents runs standalone.
| Kind | Supported |
|---|---|
| Framework | qbx_core, qb-core, es_extended, or standalone (no money, every price is 0, no jobs) |
| Inventory | ox_inventory, qb-inventory and the ps / lj forks for physical cards. Otherwise every document is digital |
| Photos | screenshot-basic (in-world mugshot camera) or MugShotBase64 (ped headshot), or none |
| Target | ox_target, qb-target, or an np_hud prompt / help text with E |
| Society money | Through the np_payments checkout while it runs, so np_banking job accounts when it is np_payments' banking provider. Otherwise Renewed-Banking, qb-banking, qb-management, okokBanking, esx_addonaccount |
| Warrants | Your MDT through setWarrantProvider or a small bridge file |
| UI | np_hud for notifications and prompts, np_phone for the wallet app |
| Physical cards | Digital only | |
|---|---|---|
| When | ox_inventory or qb-inventory, Config.RequireItem = true | ESX default inventory, no inventory, or RequireItem = false |
| Show from picker and phone | ✓ | ✓ |
| Hand over, steal, seize | ✓ | – |
| Forger | ✓ | – |
Installation
The database tables are created on start. You build the NUI once and add the items to your inventory.
- Put the resource in
resources/asnp_documents(keep the name). - Build the NUI once (Node 18+):
cd web && npm ci && npm run build - Start it after its dependencies:
ensure oxmysql ensure qbx_core # or qb-core / es_extended (optional) ensure ox_inventory # or qb-inventory (optional) ensure screenshot-basic # optional, mugshot photos ensure ox_target # optional, or qb-target ensure np_hud # optional ensure np_phone # optional ensure np_npchandler # required, 1.1.0+ ensure np_prophandler # required ensure np_documents - Database: nothing to do. The
ident_*tables are created on start, andsql/install.sqlhas the same schema for manual setups. - Add one item per document plus
uv_lampto your inventory. ox_inventory items useserver = { export = 'np_documents.<item>' }andconsume = 0. On qb-core, replace its ownid_cardanddriver_licenseand remove the starter items that hand them out. - Give admins the designer: grant
np_documents.adminto their group in np_admin, no ACE needed. Keep the webhook out of git:set np_documents_webhook "https://discord.com/api/webhooks/..."
For your own scripts
Server exports to issue documents, check them, add points, register weapons and plug in your MDT. Events fire on issue, status change, show and publish.
-- a free ID card from your starter script
local serial, err = exports.np_documents:issueDocument(src, 'id_card', {},
{ free = true })
-- only rent cars to players with a valid driving licence
local ok, doc = exports.np_documents:hasValidDocument(source, 'driver_license')
-- two points for a red light (suspends at the type's maximum)
exports.np_documents:addPoints(doc.serial, 2, 'Rotlicht', 'Ofc. Holloway')Questions
Is it in English?
The UI, notifications and server messages come in German (default) and English, set with Config.Locale. The built-in document labels are German and are renamed in the designer. Command names are in Config.Commands.
Do I need a framework or an inventory?
No. Only oxmysql is required. Standalone has no money (every price is 0) and no jobs, and character data the framework would give becomes a desk input. Without ox_inventory or qb-inventory every document is digital.
Does it work with ESX?
Yes. The default ESX inventory has no item metadata, so documents stay digital and are shown from the picker and the phone app. For physical cards on ESX, run ox_inventory.
What happens when a player steals a card?
The card still shows the owner's data and photo. The holder check in a police check fails, and the thief can't renew, report it lost or replace it.
Can I add my own documents?
Yes, in the designer with /iddesigner, from a blank type or a copy. New types need an inventory item entry like the built-in ones.
Can my MDT answer the warrant check?
Yes. Call setWarrantProvider from your MDT resource with a function that returns the count and details for a citizen id. Without one, the check always answers no warrants.
Works well with

Build once, ensure it, add the items.
Installation, every document rule and every export are in the docs.