Studios
Evidencehouse-3.jpg

Commands & Exports

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

Commands#

This resource registers no commands. Scene clean-up is a client event you trigger from your own command.

Server exports#

All exports are server side. They check their arguments and ignore bad input. src is a player source, used for the routing bucket and the per-player limit. Calls made while the database is still loading are queued until it finishes.

Export Use
AddCasing(src, weaponHash, serial, coords) A fired round. Rounds from the same gun close together join one pile.
AddBlood(citizenid, bloodtype, coords, src?) A blood stain. src is looked up from the citizen ID when left out.
AddPrint(src, coords, where?) A fingerprint from the player's metadata.fingerprint. The caller decides about gloves.
AddAfid(coords, serial, src?) AFID tags from a taser shot.

Each returns the record ID, or nothing when the call was refused (bad arguments or the rate limit).

Client exports#

None.

Client events#

Event Arguments Use
glitch-evidence:client:clearArea kinds, label? Trigger on an officer to clear nearby evidence of the listed kinds with a progress bar. The kinds are casing, afid, blood and print.
glitch-evidence:client:copyDna slot Used by the Copy DNA ID button on the filled evidence bag. Copies the bag's DNA ID to the clipboard.

Callbacks#

The resource uses these itself. They are not an integration API, and are listed so you know what the server checks.

Callback Purpose
glitch-evidence:nearby Evidence near the sweeping officer, in their routing bucket.
glitch-evidence:begin Starts the server-side timer for a bag, destroy or clear.
glitch-evidence:bag Finishes bagging: removes an empty bag and adds a filled one with metadata.
glitch-evidence:dispose Finishes destroying a find.
glitch-evidence:clearArea Finishes a scene clear and returns how many pieces were removed.

Database#

The glitch_evidence table holds id, kind, x, y, z, created, data and bucket.