Skip to content

np_identification v1.0.0 ​

Renamed: the resource continues as np_documents from version 2.0. The old exports and events remain compatible; use the new guide for installation and certification features.

ID cards, licences and badges for FiveM in a "San Andreas" card style, with everything around them built on the Nimbus UI design system: a document picker, a 3D viewer with hologram and UV check, self-service desks with a mugshot camera and a signature pad, player clerks, police checks with points, suspensions and seizures, department badges, a black-market forger, an np_phone wallet app, and an in-game document designer for admins.

It works with qbx / qb / esx or standalone, and with ox_inventory / qb-inventory for physical cards, or fully digital. 14 document types ship ready to use. Admins change them and create more in game, without a restart.

Viewer: a Personalausweis shown by another player

Picker (/ausweis) Police check
Picker Check
Desk: photo & signature Badge
Desk Badge
Designer: design Designer: fields & rules
Designer design Designer fields
UV lamp Forger
UV Forger
np_phone wallet Detail Applications
Wallet Detail Offers

All built-in documents, front and back:

All built-in documents

At a glance ​

  • Documents in the database, cards in the inventory. The item carries only the serial. A card always shows its live record: revoked, suspended, expired, points. A stolen card shows the owner's data and fails the holder check.
  • Show, hand over, look yourself (/ausweis, F6) with an animation and a prop. The viewer tilts with the right mouse button, flips with F, reveals UV features with a UV lamp, and saves a photo of the card to the np_phone gallery. See Showing & issuing.
  • Desks: NPCs from the config or placed in game from the designer. Offers with requirement status, inputs for missing character data, an exam, a mugshot camera with three angles, a signature pad, cash or bank.
  • Player clerks (/lizenz): jobs and grades per document type, the recipient is picked from nearby players and pays.
  • Police: /ausweispruefung or the Ausweis verlangen target option (the player answers with Y / N). Registry, holder, status, expiry, points, classes and warrants. Points with automatic suspension, suspensions with an end date, revocation, seizure of the card (forgeries too). See Police, badges & forgery.
  • Badges (/badge) per job with rank and callsign, flashed to everybody nearby together with the service ID.
  • Lifecycle: expiry reminders on the phone, online renewal, lost reports and replacements, a weapon registry on the Waffenschein, and an audit log in the database, to a Discord webhook and to np_admin.
  • Forger: a black-market NPC with three qualities. Cheap fakes have typos and wrong fonts. No fake has the UV pattern or a registry entry.
  • Designer (/iddesigner): drag-and-drop card layout, fields and sources, rules (fees, validity, issuers, desks, requirements, exams, police permissions), drafts, publishing with a migration choice, version compare and rollback, JSON import / export. Everything is validated on the server. See Designer.
  • np_phone app Dokumente: card stack, details, renew / report lost / replace, show digitally, applications. See Phone app.
  • 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.
  • np_admin (optional): the np_identification.admin node, settings editable live, log forwarding and two staff tools. See Permissions.
  • Requires oxmysql, np_npchandler 1.1.0+ (desk and forger NPCs) and np_prophandler (card prop). Frameworks: qbx / qb / esx, auto-detected, or standalone. Languages: de (default) and en.

Quick example ​

lua
-- server: a free ID card from your own starter script (the character must be loaded)
local serial, err = exports.np_identification:issueDocument(src, 'id_card', {}, { free = true })
if not serial then print('id card failed:', err) end

-- server: only let players with a valid driver licence rent a car
local ok, doc = exports.np_identification:hasValidDocument(source, 'driver_license')
if not ok then return TriggerClientEvent('my_rental:denied', source) end

-- server: two points for running a red light (suspends automatically at the type's maximum)
exports.np_identification:addPoints(doc.serial, 2, 'Rotlicht', 'Ofc. Holloway')

-- server: your MDT answers the warrant check
exports.np_identification:setWarrantProvider(function(citizenid)
  local rows = MySQL.query.await('SELECT id, title FROM my_warrants WHERE citizenid = ? AND active = 1', { citizenid })
  return #rows, rows
end)

Next steps ​