Troubleshooting
Frequent tc-forensic errors: invisible casings, camera, items without metadata, access denied.
#I cannot see the casings
- You need a light on (
Config.Casings.needFlashlight). On-duty police: flashlight; others: UV lamp (lampe_uv), unlesscivilianFlashlight = true. - Spawn distance:
viewDistance(35 m). BeyondmaxPropsprops, only the closest are shown. - On Vision, switch off “Spawn casing on shot” in the core's evidence config menu to avoid duplicates.
- The player has a state bag listed in
disableStateBags(for exampleinPaintball): casings are disabled.
#The camera does not take photos
screenshot-basic must be started and Config.Integrations.screenshot = true. Without it, photos are impossible.
#My items have no data (evidence not found, empty photo)
Items carry metadata. Use ox_inventory (or a QBCore inventory with info). ESX's native inventory has none: see Items.
#“Access denied” on /enquete, /labo or /fichier
You must be an on-duty officer. Outside Vision, check that your job is in Config.Police.jobs and that you are on duty.
#/forensicgestion refused
- Outside Vision:
add_ace group.admin command allow, orConfig.Bridge.Admins. - Vision: a permission from
Config.StaffPermissions, or Discord ID inConfig.AdminDiscords.
#Sampling does not work
- You need the
forensic_kit(DNA, fingerprints) or atest_gsr(residue). - Distance:
Config.Sampling.range(2.5 m). - Without
ox_target/qb-target, use the commands/adn,/empreintes,/gsr,/empreintesvehicule.
#Laboratory analyses are refused
Config.Lab.atLab requires a Laboratory point for some analyses, and as long as no point is placed they are refused everywhere. Place a point with /forensicgestion.
#Fingerprints on doors do not appear
ox_doorlock must be started, with Config.Integrations.doorlock = true and Config.Prints.doors = true.
#Bullet trajectories do not show (outside Vision)
That is expected: they are specific to the Vision core.
#DNA codes change after a config update
If you changed Config.Evidence.hashSalt after going live, codes already generated no longer match. Change this salt only once, before production.
#Missing tables
Import sql/install.sql (see Database). The SQL account needs the CREATE right.