Everything is in config.lua. That file, locales/*.json, the install folder and the sql folder are open in the escrow, so you can edit them.
Main settings#
| Key | Default | What it does |
|---|---|---|
Config.Debug |
false |
Print each new record to the server console. |
Config.JobType |
'leo' |
Job type (job.type in qbx_core) that can sweep, bag and destroy. The officer must be on duty. |
Config.Persist |
true |
Keep evidence across restarts. Rows past their expiry are dropped on start. |
Config.FlushEvery |
15 |
Seconds between database batches for merged rounds and stains. |
Config.MaxRecords |
3000 |
Cap on live records. The oldest one is dropped when it is reached. |
Config.AddLimit |
{ count = 12, seconds = 10 } |
New records one player can create in that time. Merging into an existing pile is free. |
Config.ClearRadius |
10.0 |
Radius in metres of a scene clear. |
Config.Log |
true |
Log bag, destroy and clear actions with lib.logger. |
Expiry and merging#
Config.Expire = {
casing = 60 * 60,
afid = 60 * 60,
blood = 30 * 60,
print = 45 * 60,
}
Config.CasingMerge = { distance = 2.0, seconds = 120 }
Config.BloodMerge = { distance = 1.5, seconds = 120 }
Config.PrintMerge = { distance = 1.0, seconds = 120 }
Config.Expire is in seconds. A new record merges into an existing one when it is within distance metres and seconds of it, and comes from the same gun (casings) or the same person (blood and prints). A merged pile counts as fresh from its last round.
Sweep#
Config.Sweep = {
range = 12.0,
beamAngle = 14.0,
focusAngle = 5.0,
foundFor = 10,
nearbyRadius = 30.0,
poll = 1000,
}
range is how far the beam reaches in metres. beamAngle and focusAngle are degrees either side of where the light points, and the closest find inside focusAngle opens the dossier card. foundFor is how many seconds a find stays marked and targetable after the light leaves it. nearbyRadius is how close evidence must be to reach the sweeping officer, and poll is the milliseconds between requests while sweeping.
Interaction#
| Key | Default | What it does |
|---|---|---|
Config.KeyHud |
'glitch-uiElements' |
Key hint while sweeping: 'glitch-uiElements' (falls back to ox_lib when it is not running), 'ox_lib' or false. |
Config.Target |
{ radius = 0.45, icon = 'fa-solid fa-magnifying-glass' } |
The ox_target sphere on each find. |
Config.Bag |
emptyItem = 'empty_evidence_bag', filledItem = 'filled_evidence_bag', duration = 3000, maxDistance = 3.0 |
Bag items, bagging time in ms and reach in metres. |
Config.Dispose |
{ duration = 2000 } |
Time to destroy a find, in ms. |
Config.Clear |
{ duration = 5000 } |
Time to clear a scene, in ms. |
Config.DurationTolerance |
500 |
The server refuses a bag, destroy or clear that finishes sooner than its duration minus this many ms. |
Config.Anim |
{ dict = 'amb@medic@standing@kneel@base', clip = 'base', flag = 1 } |
Kneel animation for bagging and destroying. |
Images, labels and text#
| Key | Default | What it does |
|---|---|---|
Config.AfidImage |
'taser_cartridge' |
ox_inventory item whose picture the card shows for AFID tags. |
Config.ImagePath |
nil |
Image folder for items with no client.image. nil uses the inventory:imagepath convar, then ox_inventory's own images. |
Config.Labels |
casing = 'Casings', afid = 'AFID Tags', blood = 'Blood', print = 'Fingerprint' |
Names shown for each kind. |
Config.Prefix |
casing = 'C', afid = 'T', blood = 'B', print = 'P' |
Code prefix per kind. |
Text is in locales/en.json. To translate, copy it to locales/<code>.json and set the ox:locale convar.