NEXO DOCSv1 · ENES
docs / scripts / nexo-idcard

Nexo ID Card

Free IDs, licenses and badges with a real character photo and signature, a visual document editor, QR, fake documents and fingerprint forensics.

v1.0.0ESXQBCoreQBoxStandalone

What's included

IDs, licenses and badges with a real character photo and signature, a visual editor so admins can design their own documents, QR verification, optional fake documents and fingerprint forensics for police. Free, for ESX, QBCore, Qbox or no framework, in 8 languages.

  • Documents as items with metadata. If your inventory doesn't store metadata, there's a virtual wallet (/cartera).
  • Real photo of the character, taken by the game itself (no external sites) when the document is issued. Staff can take a new one.
  • Signature with the mouse when receiving the document.
  • Wallet with a 3D card, hologram, front and back. Show it to the player next to you with an animation.
  • Issue and edit: search citizens (online or offline), issue, edit data, new photo, request a signature, revoke, reinstate, duplicate and history.
  • City hall: an NPC to get, renew or duplicate your ID for a fee.
  • QR verification: whoever sees your document scans it and knows if it's valid, the age, if it's expired or revoked, or if it's fake. Police also see warrants.
  • Discord logs per action type.

Installation

  1. Copy the resource Get it for free from the store, download it from keymaster.fivem.net → Granted Assets and put the nexo_idcard folder in resources.
    Don't rename itIf the folder has another name, the script won't start and warns you in the console.
  2. Add it to your server.cfg After oxmysql, your framework and your inventory. Database tables are created automatically (or import sql/install.sql).
    ensure oxmysql
    # ...framework e inventario / framework and inventory
    ensure nexo_idcard
    
    add_ace group.admin nexo_idcard.admin allow
  3. Add the items ox_inventory: copy what's inside the braces of install/ox_items.lua into ox_inventory/data/items.lua. QBCore / Qbox (qb, ps, lj): copy install/qb_items.lua into qb-core/shared/items.lua. qs, codem, core, tgiann: create the same items in your inventory; documents must be unique (not stackable).
  4. Copy the images Move the images from install/images into your inventory's images folder.
ItemWhat for
id_card · driver_license · weapon_license · police_badgeThe 4 base templates
passportPassport (gallery template)
fingerprint_kit · fingerprint_scannerKit to lift prints and reader
fingerprint_card · evidence_fibers · forensic_reportLifted print, glove fibers and report
uv_lamp · bleach · clothUV lamp and print cleaning

Compatible with ox_inventory, qb-inventory, ps-inventory, lj-inventory, qs-inventory, codem-inventory, core_inventory and tgiann-inventory.

Commands

CommandWhoWhat it does
/carteraEveryoneOpens your wallet. It also opens when using the item.
/idcardsAdmins and anyone who can issueTemplate editor and issuing and editing documents

Names are changed in Config.Commands and you can set a wallet key with Config.WalletKey.

Base documents

The 4 templates that come with the script are set in Config.Documents. The ones you create in the editor or add from the gallery are set in the editor itself (Card tab).

TemplateIssued byPriceExpiresNumber
dni · ID cardadmin, city hall25010 yearsSA-####-####
driver · Driver licenseadmin, driving school15005 yearsDL-######
weapon · Weapon licenseadmin, police:250001 yearWL-#####
badge · Badgeadmin, police:30NeverLSPD-####

issuers accepts admin, a job (police) or a job with a minimum rank (police:3). In format, # is a number and ? a letter. sign asks the player to sign.

Config.Documents = {
    dni    = { item = 'id_card',        issuers = { 'admin', 'cityhall' }, price = 250,  days = 3650, format = 'SA-####-####', sign = true },
    driver = { item = 'driver_license', issuers = { 'admin', 'driving' },  price = 1500, days = 1825, format = 'DL-######',    sign = true },
    weapon = { item = 'weapon_license', issuers = { 'admin', 'police:2' }, price = 5000, days = 365,  format = 'WL-#####',     sign = true },
    badge  = { item = 'police_badge',   issuers = { 'admin', 'police:3' }, price = 0,    days = 0,    format = 'LSPD-####',    sign = false },
}
Config.MoneyAccount = 'cash' -- 'cash' o 'bank'

Template editor

With /idcards admins design documents from scratch or start from a template.

  • Elements: texts, character data, photo, signature, barcode, QR, MRZ zone, logos, chip, hologram, shapes and your own images.
  • Tools: drag, resize, multi-select, align and distribute, lockable layers, rulers, zoom, undo and redo.
  • Design: backgrounds (gradients, colour or image), security patterns, frame, custom fonts and UV ink.
  • Preview with real players from the server.
  • Version history with restore (up to Config.Editor.MaxVersions).
  • Gallery with 6 extra templates: passport, business card, hunting license, fishing license, EMS credential and BCSO badge.
  • Export and import templates with a code.

City hall and QR

The city hall NPC lets players get, renew or duplicate their ID for a fee. It's set in Config.CityHall (locations, ped, blip, duplicate price and whether it can be issued again after staff revoke it).

With Config.Verify you choose who can scan the QR: jobs in Full see warrants and records, and everyone else (bouncers, shops...) only sees if it's valid and the age. With Item you can require an item to scan (for example, phone).

The UV lamp (Config.UV) reveals the UV ink of genuine documents.

Fake documents

Off by defaultTurn them on with Config.FakeDocuments.Enabled = true. They're ordered from a black-market forger who can move on every restart.
  • Basic (5000): they're not in the registry, so the QR gives them away.
  • Premium (25000): they copy a real number, so they pass the QR but show the real owner's photo. They also have no UV ink.

Prices, templates and wait minutes in Config.FakeDocuments. Set premium = 0 to not offer premium ones.

Fingerprint forensics

  • Prints are left when driving a vehicle and firing a weapon. Other scripts can add more spots with LeavePrint.
  • With gloves no prints are left, only fibers.
  • Prints lose quality over time (Decay, 120 min). Bleach destroys them and a cloth leaves them half.
  • Kit with developing powder, UV lamp and tape to lift them.
  • Reader for nearby suspects and collected prints. Unregistered ones are saved as unknown.
  • Manual 6-point comparison and a report with signature and seal (item, Discord and a hook for your MDT).

Everything is set in Config.Fingerprint: jobs (Jobs), on-duty, items, distances, cleaning and gloves. Gloves are detected from the arms component (3): if you use added clothing, check the MaleNoGloves and FemaleNoGloves lists.

Prints in memoryPrints left in the world are kept in memory: a restart clears them. Lifted evidence, records and reports are saved in the database.

Admins, logs and MDT

In config_server.lua (not sent to clients) you choose who is admin (ace, groups or identifiers), the Discord webhooks per action type and the connection with your MDT.

-- Records and warrants in the print reader and QR verification
ServerConfig.GetRecord = function(identifier)
    -- return { flags = { { text = 'Busca y captura', kind = '' } }, records = { { text = 'Robo', date = '28/11' } } }
    return nil
end

-- Called when a forensic report is saved
ServerConfig.OnReport = function(report, officerSrc)
    -- report = { number, officer, evidence = {...}, person = { identifier, name }, confirmed = true/false }
end

For other scripts

-- Driving school, gun store, jobs...
local id, docnum = exports.nexo_idcard:IssueDocument(source, 'driver', { class = 'B' })
local ok = exports.nexo_idcard:HasDocument(source, 'weapon')
local docs = exports.nexo_idcard:GetDocuments(citizenid)

-- Prints on heists, doors, ATMs...
exports.nexo_idcard:LeavePrint(source, { id = 'fleeca_legion_door', label = 'Puerta', sub = 'Fleeca Legion', kind = 'paint', coords = vector3(147.1, -1045.2, 29.3) })

Police analyse that spot using the kit within 2.5 m.

Notes

  • The photo uses the portrait GTA generates (128 px), the most reliable option without external services. If you use another system, set Config.Photo.Mode = 'custom' and return the image in client/bridge.lua.
  • Personal data is taken from the character when issuing. In «Issue and edit» it can be corrected and, if you want, updated in the framework too.
  • Notifications (Config.Notify) and NPC interaction (Config.Target) are auto-detected: ox_lib, framework, ox_target, qb-target or the E key.

Editable files

FileWhat for
config.luaLanguage, framework, inventory, documents, photo, signature, city hall, verification, fake documents and fingerprints.
config_server.luaAdmin permissions, Discord webhooks and your MDT connection.
locales/Texts in 8 languages.
client/bridge.luaCustom photo and client adaptations.

FAQ

Do I need an inventory with metadata?

It's best: every document is an item with its data. If your inventory doesn't store metadata, players use a virtual wallet with /cartera.

Where does the photo come from?

From the character portrait GTA itself generates when the document is issued, with no external sites. If you use another photo system, you can hook it up in client/bridge.lua.

Is the code encrypted?

The core is protected with Cfx.re escrow. Config, translations and integration points stay open.

Do I get updates?

Yes, for free. New versions appear in your Keymaster and we announce them on Discord.

What if something doesn't work?

Open a ticket on our Discord with the console error and we'll help you.