Designer ​
/iddesigner (or the np_admin staff tool Document designer) opens the document designer for admins: the np_admin
node np_identification.admin, see Installation → Permissions. It edits
every part of a document type: the card layout, the fields and their sources, the rules, the back side,
exams and desks. Changes are drafts until you publish them; a published version reaches every client without a
restart.

Layout of the window ​
- Document list (left): every type with a badge:
Config(fromshared/documents.lua, not changed),Entwurf(a saved draft) orLive(a published database version). Search,Neues Dokument,Import,Exportand delete are at the bottom. - Tabs (top):
Design,Felder & Regeln,Rückseite,Versionen. - Header (top right): the status chip (
Entwurf · nicht gespeichert,Entwurf gespeichert,Live · v2,Config-Versionor the number of errors),Im Spiel testen,Duplizieren,Speichern,Veröffentlichenand ESC to close. Closing or switching documents with unsaved changes asks first.
Problems found while you edit (a field that doesn't exist, a back template without its list field, an image host that
isn't allowed, …) are listed with the path and block saving. The server validates everything again and rejects with
invalid_definition:<path>.
Design tab ​
The card in the middle is the editor. Above it: Vorderseite / Rückseite, Raster (dotted 10 px grid),
Einrasten (snap to the grid and to the card's centre and edges, with pink guides), Beispieldaten: Aiden Pearce
(sample data or an empty card), Vorlage (reset to the default template), undo / redo and zoom.
| Action | How |
|---|---|
| Add an element | Click a button under Element hinzufügen, or drag it onto the card |
| Select | Click. Shift-click adds to the selection. Click an empty spot to deselect |
| Move / resize | Drag the element or its handles |
| Nudge | Arrow keys: 1 px, with Shift 10 px (no snapping) |
| Undo / redo | Ctrl+Z / Ctrl+Shift+Z |
| Duplicate / delete | Ctrl+D / Del, or the floating toolbar |
Element kinds: Textfeld, Feld, Foto, Unterschrift, Bild / Logo, QR-Code, Strichcode, Tabelle,
Hologramm, Seriennummer, Ablaufdatum, Icon, up to 80 per side. The floating toolbar aligns text, toggles bold
and the label, changes the size, duplicates, deletes and moves elements forward or backward. The inspector on the
right shows the selected element: label, field, text (with placeholders such as {serial}, {expires}, {holder},
{mrz}), size, alignment, colour, Beschriftung zeigen, Bei leerem Wert ausblenden, and position and size.
With nothing selected, the right column edits the card itself:
| Section | Settings |
|---|---|
Farbe |
Two gradient colours (swatches or hex) and the angle |
Kopfzeile |
Titel, Staat, Roter Stern, Hologramm-Siegel |
Wasserzeichen |
Stadtsiegel, Icon, Bild-URL or Keins |
Kleines Siegel |
Stadt, DOJ or none |
Eck-Icon |
Optional icon in the corner |
Logos |
Up to 3: a built-in brand (Marke), an image URL (Bild) or a text logo (Text) |
Listen-Darstellung |
Tile tint and icon in the picker and the phone app |
Image URLs must be https:// from a host in Config.ImageHosts.
Fields & rules tab ​

| Box | What you set |
|---|---|
Datenfelder |
Label, source, type, required and side of every field. Reorder by drag and drop. Add with Feld, Charakter (a character source), Eingabe beim Ausstellen (an input) or Automatisch (issue date, expiry, serial, issuer). Each row opens its details (field id, options, fixed text, hide when empty). Up to 40 fields |
Item & Gültigkeit |
Inventory item, fee, society account (Konto, or Geld wird entfernt), validity (30 / 90 / 180 / 365 days, unbegrenzt or custom), Online verlängerbar (Wallet-App), Max. aktiv, Max. Punkte, Waffen-Slots, serial pattern |
Wer darf ausstellen |
Jobs with a minimum grade (from the framework's job list). Admin is always allowed |
Ausgabestellen |
Toggle the desks that offer this type, and place new ones (see Desks) |
Voraussetzungen |
Gültige Dokumente, Kein offener Haftbefehl (MDT bridge), Mindestalter, Prüfung (pick or create an exam) |
Polizei-Befugnisse |
Im Register prüfen, Sperren, Einziehen, Punktesystem, minimum grade |
Vorschau |
Live front / back preview |
See Document types → Rules for what each rule does.
Exams ​
Prüfung bearbeiten (or Neue Prüfung) opens the exam editor: key, label, pass mark in percent, and questions with
their answers; mark the correct one with richtig. Exams are saved right away to ident_exams and override the exams
in shared/documents.lua.
Desks ​
Desks can be placed in game, without touching the config:
- Stand where the NPC should be, facing the way it should face.
- Under
Ausgabestellen, clickAktuelle Position hinzufügen. - In
Schalter an dieser Position, set the name, the id (a-z,0-9,_, 2–32 characters), the NPC model (for examplea_f_y_business_02) and whether it gets a map blip, thenSchalter anlegen.
The desk is stored in ident_desks and spawns for every player right away. Using the id of a config desk replaces
that desk. Desks placed in the designer are marked im Spiel gesetzt and can be deleted again (Schalter löschen);
config desks can't. Document types that list a deleted desk keep the id.
Back tab ​

Pick the back template: Leer, Anschrift + MRZ, Klassen-Tabelle, Waffenregister or Feldraster (see
Back templates). Once the back has a freeform layout, switching the template rebuilds
the back from it.
Versions tab ​

The list shows the local unsaved state, the saved draft, the live version, archived versions and the config version, each with date, author and the number of cards issued.
Vergleichenputs two versions side by side and lists the changes.Zurückrollenpublishes an old definition again as a new version. Cards already issued keep their design. Rolling back to the config version removes the override, soshared/documents.luaapplies again.Entwurf verwerfendeletes the saved draft. The live version stays; a type that only ever was a draft disappears.
Saving, testing, publishing ​
Speichernstores the draft (ident_types.draft). Players still see the live version.Im Spiel testensaves and opens the draft in the real viewer, filled with your character's data, your latest photo and sample inputs (the UV lamp works there too). When you close the viewer, the designer opens again on the same type.Veröffentlichensaves unsaved changes first, then asks what happens to the cards already issued:

| Mode | Effect |
|---|---|
Neues Design übernehmen (update) |
Existing documents move to the new version. Their data stays the same; new required fields stay empty |
Altes Design behalten (keep) |
Existing documents keep the version they were issued with. The new version applies to new documents only |
Neuausstellung verlangen (reissue) |
Existing documents expire after the number of days you set (default 14). Online holders get a phone notification |
Publishing writes the version to ident_type_versions, pushes the new types to every client, notifies open phone apps
and fires np_identification:typesPublished (key, version).
New documents, import and export ​
Neues Dokument: label and key ([a-z0-9_], 2–48 characters, unique), starting from a blank type or as a copy of an existing one. It starts as a draft.Duplizierendoes the same for the open type.Exportshows JSON to copy:{ format = 'np_identification/type', version = 1, type, exam? }. It contains the draft if there is one, else the live definition, and the exam the type requires.Importtakes that JSON or a bare TypeDef. It is validated and saved as a draft (the exam, if included, is saved directly).- Delete removes a database type; cards already issued stay and keep their design. For a config type it is called
Überschreibung entfernen: drafts and published versions are dropped and the config definition applies again.
Remember that a new type needs an inventory item (see Installation → Items).