Studios
Evidencehouse-3.jpg

Troubleshooting

SoonEvidenceQbox
PAGE 05 OF 06  ·  EXAMPLES → TROUBLESHOOTING → COMMANDS & EXPORTSdocs.glitchstudios.dev
Browse docs

Nothing shows when I sweep#

Check that a source is calling the exports, that the officer is on duty with a job of type Config.JobType, and that they are in the same routing bucket as the evidence. Set Config.Debug = true to print each new record.

Evidence never appears at all#

The resource does nothing on its own. Something has to call AddCasing, AddBlood, AddPrint or AddAfid. Paste the hooks from install/qbx_police.lua or add your own calls.

Bagging says I need an empty bag#

The items from install/items.lua are missing from ox_inventory/data/items.lua, or they are named differently from Config.Bag.

The card has no picture#

The item has no image in ox_inventory. Check Config.ImagePath or the inventory:imagepath convar.

The ox_target option does not show#

The light must mark the find first, and the officer must stand within Config.Bag.maxDistance. Sweep again if more than Config.Sweep.foundFor seconds have passed.

Evidence is gone after a restart#

Config.Persist is off, or the record passed its expiry.

New evidence is being ignored#

The player hit Config.AddLimit, or the store is at Config.MaxRecords and is dropping the oldest records. Raise the limits if your scenes are busy.

The key hint is missing#

Config.KeyHud is set to 'glitch-uiElements' and that resource is not running, so the hint falls back to ox_lib. Set it to 'ox_lib' or false to choose on purpose.