Skip to content

Installation ​

Resource order ​

Put the resource folder in your FiveM resources as np_documents, then start its required dependencies first:

cfg
ensure oxmysql
ensure np_npchandler
ensure np_prophandler
ensure np_inventory       # recommended for physical cards; optional for digital-only records
ensure np_documents

The manifest also provides the old np_identification resource name for dependency compatibility. Existing resources that call exports.np_identification:* or listen for np_identification:* events continue to work. New scripts should use np_documents.

Build the NUI ​

Build the included web app once before starting the resource:

sh
cd web
npm ci
npm run build

The build produces web/dist, which the resource manifest serves in game.

Database ​

The resource creates its ident_* tables through oxmysql on startup. Existing np_identification records use the same tables and do not need a table rename. Back up the database before changing or removing the old resource folder.

Inventory ​

Config.Inventory = 'auto' prefers np_inventory, then supported inventory/framework bridges. Set it to np, ox, qb, esx or none to choose explicitly. none keeps records digital and does not issue physical card items. See inventory compatibility.

For the existing desk, document item, framework, np_admin and permission setup, see the legacy np_identification installation guide. The np_documents.admin node is canonical; the old np_identification.admin node remains accepted during migration.