One Life Developments/ DOCUMENTATION
Visit Store ↗
FRONTIER LAWBOOK • GUIDES & REFERENCE

Lawbook Configuration

The main customer-editable settings are in shared/config.lua.

Access and commands

Config.Command = 'lawbook'
Config.Debug = false
Config.AllowedJobs = {
  police = true,
  sheriff = true,
  marshal = true,
  deputy = true,
  lawman = true
}
Config.AdminGroups = { admin = true, superadmin = true }

These are the default job keys in the v0.4.9 resource. Adjust them to match your VORP jobs and staff groups. The resource performs server-side authorization checks on protected actions.

Charge presets

Each charge includes a stable code, display label, suggested fine and jail duration in minutes.

{code='ROBBERY',label='Armed Robbery',fine=200,jail=45},
{code='HORSE_THEFT',label='Horse Theft',fine=95,jail=20},

The default library includes location-specific robbery offenses and general county offenses. Fine and sentence numbers are starting examples, not an official economy standard. Review them for your county rules.

Limits

Config.MaxTextLength = 4000
Config.MaxFine = 5000
Config.MaxJailMinutes = 240

Sheriff departments

Use Config.DepartmentByJob for custom job-to-department mapping, or Config.DepartmentTowns and Config.DepartmentTownRadius for location-based office headings on the welcome page.

Prison bridge

Config.Prison = {
  mode = 'custom',
  resource = 'bulgar_prison',
  -- cells = { ... }
}

The shipped v0.4.9 configuration uses a custom BulgaR Prison bridge with selectable cells. Do not assume compatibility with unrelated prison scripts; test the transfer and database recording behavior before enabling it on a public server.

Need more help?

Our support team can help with installation and configuration.

Contact Support ↗
© 2026 One Life Developments Built for your world.Store ↗
⌕
↑↓ Navigate↵ OpenESC Close