Skip to content

cc_corrections

The whole prison and the officers who run it. Sentences count down fairly, prisoners have cells and prison jobs that cut their time, and corrections officers receive, transport, search, muster and rel

The whole prison and the officers who run it. Sentences count down fairly, prisoners have cells and prison jobs that cut their time, and corrections officers receive, transport, search, muster and release them. It runs on Qbox, QBCore, ESX, ox_core, ND_Core or standalone, through cc_lib.

Requirements

Requiredcc_lib 1.8.0 or newer, oxmysql (MySQL 5.7+ / MariaDB 10.4+)
FrameworksQbox, QBCore, ESX, ox_core, ND_Core, or none (officers by ACE)
Optionalany inventory, target, dispatch, keys, fuel and banking script cc_lib bridges; ox_doorlock; a phone; a clothing script; cc_doj; an MDT; your existing prison script

Install

  1. Put cc_corrections in resources/ and add these lines to server.cfg, after oxmysql and cc_lib. install/convars.cfg has every line.
    cfg
    ensure oxmysql
    ensure cc_lib
    ensure cc_corrections
    add_ace group.admin cc_corrections.admin allow
  2. Add the corrections job: install/jobs/qbox.lua, qbcore.lua or esx.sql. On standalone, give officers the ACE cc_corrections.officer.
  3. Items: the resource has none of its own. install/items/ has blocks for ox_inventory, qb-inventory and ESX covering the default loadout, canteen and meals.
  4. Start the server. The tables create themselves, and one console line reports the framework, backend and database.
  5. Check the map. The points are placed for Bolingbroke with the Prompt prison interior. On another map, set Config.Features.doors = false and move the points with /corrections edit.

The INSTALL.md file in the download covers the DHS-PrisonSim and MDT setups.

Pages

PageFor
Configurationevery setting in config.lua and server/config.lua
Exports and APIthe jail API, exports, events and hooks
Compatibilityframeworks, inventories, targets, phones, clothing, dispatch and maps
Troubleshootingevery console and F8 message and its fix

Commands

CommandWhoDoes
/ctablet or F9officersthe tablet, or the action menu near a prisoner
/commit <id> <units> [reason]policesend a prisoner to the prison
/remand <id> [case ref]policehold a prisoner for court
/sentenceprisonersthe sentence card
/lawyer, /prisoncallprisonersask for counsel, make the one phone call
/corrections edit / export / selftestadmins (ACE)place points in game, print them for config, check the setup