Skip to content

DOJ Contract ​

Contract: IDOJ
Default provider: shiva-doj (optional module)

Department of Justice — records citations, arrests, and criminal history.

Methods ​

IDOJ:cite(officerId, suspectId, chargeId, data?) ​

Issue a citation to a player.

lua
local doj = container:make('IDOJ')
doj:cite(source, suspectId, 'speeding', {
    speed = 130,
    limit = 80,
})

IDOJ:arrest(officerId, suspectId, charges, jailTime) ​

Record an arrest.


IDOJ:getRecord(charId) ​

Get the criminal record for a character.

Returns: table — list of charges, citations, and arrests


IDOJ:expunge(charId, recordId) ​

Remove a record entry (judge/admin only).

Released under the MIT License.