Browse docs

Configuration

Configure DOJ jobs, feature toggles, records access and printers.

Job Configurator and open files

Config.UseJobConfigurator = true enables the shared Job Configurator integration. Use /jobconfig for registered jobs, interactions, settings and feature toggles. Saved configurator values take precedence over the shipped defaults.

The open files remain useful for installation defaults and settings that are not exposed in a form:

Location inside sky_dojjobPurpose
config/config.luaJobs, access settings, feature defaults and module configuration
config/registry.luaLicense-register selection, registry access overrides and legacy catalog
config/registry/Per-register fields, certificate assignment and separate client/server hooks
config/locales/User-facing resource translations
config/style.cssExposed resource styling
config/img/Resource image assets
import.sqlManual database installation and upgrade statements

Changing a fallback value does not erase a saved configurator override. To intentionally import the local resource configuration into the live configurator, use /jobconfigimport sky_dojjob. Review your saved job settings before importing.

Jobs and duty

The shipped job is named doj and uses society_doj. Configure the actual job, grades and society account used by your framework. Job entries also hold storage, lockers, shop items, vehicles and printers.

Config.Tablet.requireDuty defaults to true. DOJ tablet access therefore requires an on-duty player. The optional off-duty job is disabled in the default job entry. Job names and duty behavior must agree with your shared Jobs Base setup.

Case-file access

In Case-file access, configure:

  • Mapping version: a non-empty identifier for the current role mapping.
  • Prosecution grade keys: technical grade names that act as prosecution.
  • Judiciary grade keys: technical grade names that act as judiciary.
  • Court administration grade keys: technical grade names for administrative staff.

The corresponding file settings are Config.RecordsAuthorization.mappingVersion and Config.RecordsAuthorization.gradeBindings. Publish a new mapping version when bindings change. Never map one grade to two domains. See Permissions for examples and the additional action permissions.

Config.CourtWarrants.templateCodes defaults to HB, DB and RB. These identify the signed and shared warrant templates used by the Police integration. Align this list with your actual templates if you change their codes.

Modules

The following keys live in Config.ToggleFeatures:

KeyShipped defaultControls
tabletEnabledDOJ records and tablet integration
legalCodesEnabledLegal Codes and law-book workflows
offencesEnabledFine Catalogue
hearingsEnabledHearing management
courtroomEnabledConfigured courtroom workflows
conditionsEnabledStructured court conditions
publicDisplaysEnabledPublic display integration
electionsEnabledElections
printersEnabledPhysical document printing
civilRegistriesEnabledFile-based registers and configured legacy registry workflows
financeEnabledFaction accounts and financial administration
taxesDisabledOptional asset-tax collection

Changing a shipped default does not disable a module that already has a saved enabled override. Review the live setting when upgrading an existing server.

Disabling registries hides those workflows without deleting their records or disabling Citizens, Vehicles or the criminal-justice workspace. Configure separate license folders and register access through Registries and certificates. Configure treasury accounts, bank fines and provider-dependent actions through Finance.

Courthouse locations and interactions

Create the courthouse and its interactions through the existing creator tools. Config.CourthouseCreator.stationBlip controls the courthouse map blip. Config.Interactions contains the shipped appearance profiles; location and behavior belong to the corresponding creator entries. Appearance settings alone do not place a courthouse, courtroom or printer. Fresh defaults have no configured courtrooms or job-printer positions.

Printers and supplies

Each job's printers list starts empty. Configure a physical printer and its position before using Print. The default DOJ printerSettings has paper consumption disabled, a capacity of 100, refill item printer_paper and refill amount 25. Shared queue and ink defaults come from sky_jobs_base/config/printers.lua; per-job overrides are available where configured.

See Sharing and printing for the complete collection workflow and Inventory items for supplies.