FXServer artifact 7290 or newer, OneSync on, oxmysql running, MySQL 8.0+
or MariaDB 10.4+. Optional: ox_lib, a voice system, an appearance script, a death
script, an MDT.
They go in config_server.lua or in convars — never in config.lua, which every
player downloads.
cfg
set recognition_secret "YOUR_LONG_RANDOM_TEXT" # optional: auto-generated if emptyset recognition_webhook_default "[YOUR WEBHOOK URL]"
set recognition_webhook_proofs "[YOUR WEBHOOK URL]"
Set recognition_secretbefore the first start if you can. Leave it empty and
the script generates one into the database instead, which is weaker (anyone with
database access can read it) and prints a warning at every boot. Once set, never
change it: a changed secret is refused at boot, because voices, voiceprint codes,
tattoo codes and the proof log all depend on it.
Config.Framework = 'auto' -- leave on auto, or pin your framework
Config.Jobs.Police = { 'police' } -- ships with 'police'; add your other departments
Config.Implant.Clinics = { ... } -- move the clinic where you want it
Everything else has a working default. See Configuration.
voice_changer, hidden_camera, magnetic_scanner, recognition_battery,
recognition_report. Paste-ready definitions per inventory are in
Items and in the install/items/ folder of the zip.
Running standalone without an inventory? Skip it — items are then kept by the script
and the console says so:
[5code-recognition] standalone: items are kept by the script (use /recognition:use).
Lighter staff roles get one child ACE each instead of the parent:
recognition.admin.view, .edit, .export, .classifier, .identity,
.settings. See Admin & Permissions.
If you use an external character selector, useExternalCharacters must be true.
ESX
esx_multicharacter builds its clean-up list only when it starts, so our table
has to exist by then. Pick one:
Recommended: import sql/install.sql once by hand (HeidiSQL, phpMyAdmin) before the next start. It is idempotent — running it twice changes nothing.
Or put ensure 5code-recognitionbeforeensure esx_multicharacter (with oxmysql and es_extended still before both) and restart the server once after the very first start.
Check it: create a test character, delete it, and confirm its row in
recognition_identities is gone.
0R Multicharacter v3
Add our character-keyed tables to its config/database.luaDatabase.List, in each
framework section you use, using the same entry format as the rows already there:
Table
Columns
recognition_identities
identifier
recognition_memories
observer_key, target_key
recognition_familiarity
observer_key, target_key
recognition_introductions
observer_key, target_key
recognition_devices
owner_key
recognition_reports
author_key, holder_key
recognition_death_sessions
char_key
Do not list recognition_scans, recognition_proofs, recognition_admin_log
or recognition_anomalies. The proof and admin logs are tamper-evident: deleting
rows out of the middle makes recognition:verifyproofs report them as tampered.
QBCore & others
Nothing to install. QBCore deletes characters from a fixed list of tables and fires
no event, so our own character clean-up job handles it (every 6 h by default, plus a
10 s check when it sees a delete happen). The same job covers UM, 17mov, CodeM, OP,
ak47 and VMS selectors on any framework.
[5code-recognition] Schema ensured (mysql 8.0.39).
[5code-recognition] Integrations: framework=qbx inventory=ox_inventory voice=pma-voice appearance=illenium-appearance tattoos=illenium-appearance death=qbx_medical police=qbx_police mdt=none evidence=none target=none textui=native hud=jg-hud screenshot=builtin
[5code-recognition] Full scan time with current settings: 90 s.
[5code-recognition] Resource started successfully (v1.0.0).
[5code-recognition] Up to date (1.0.0).
The last line arrives about eight seconds after the others, and is silently
skipped if the update check cannot reach GitHub — its absence is not a fault.
Face your friend and press F3. Scan person to memory is already marked:
press ENTER, then ENTER again to start on the orange arrow, and talk. Then
have them put a mask on and scan again. Then check the result from the server
console:
A nametag driver so masked players lose their floating name — Nametags & Chat
Target mode instead of the F3 menu — Target, Text UI, Progress, Notify & Emotes. Printing camera recordings needs the F3 menu, so it is not available in target or prompt mode.
Every boot line has a fix on the Troubleshooting page. Two quick ones:
"My changes don't apply." You are almost always editing a different copy of the folder than the one the server loaded, or on a different server than the one you are testing on. Check the path the console prints.