Skip to content

cc_corrections - troubleshooting

Start with the start-up line in the server console. It always prints, and names what was found:

Start with the start-up line in the server console. It always prints, and names what was found:

cc_corrections 2.2.0 | framework: qbox | backend: builtin | inventory list: ox_inventory | database: ready

Then type /corrections selftest in game as an admin: it checks every point, door, uniform piece, animation and prop against your map and clothing, and lists what is wrong.

Server console

MessageCauseFix
[config] <key> ... (red)a setting has the wrong type or rangethe line names the key; fix it in config.lua or server/config.lua. The resource keeps running on the default for that key
oxmysql is not loaded; persistence is DISABLED and custody cannot work / database: UNAVAILABLEoxmysql not started first, or no connection stringensure oxmysql above ensure cc_corrections; check mysql_connection_string. Without a database the prison refuses committals rather than forget them
[setup] cc_lib x.y.z is older than 1.6.0old bridgeupdate cc_lib
Couldn't load resource cc_corrections / nothing at allcc_lib missing, or the folder was renamedensure cc_lib before it; keep the folder name cc_corrections (the NUI and events use it)
[config] <X> names '<resource>', which is not startedan integration in config points at a resource that is not runningstart it, or set that option to nil / false
[config] job 'corrections' is not defined in your frameworkthe job block was never addedpaste install/jobs/qbox.lua, qbcore.lua or run esx.sql; restart
[config] ... item '<name>' does not exist in your inventorythe loadout, canteen or meal names an item your inventory lacksadd it from install/items/, or change the name in server/config.lua
[config] ServerConfig.MinSeconds.<x> ... honest players will be refusedthe server floor is longer than the progress barlower the floor below the bar time
Config.Preset = '<name>' matches no presets/<name>.luaa preset name with no filecreate presets/<name>.lua (copy presets/example.lua) or set Config.Preset = nil
api.actor returned to an MDTthe calling resource is not trustedadd it to ServerConfig.Api.trustedSystems
SCRIPT ERROR: @cc_corrections/...a bug, or a hook in custom/server.lua threwthe error names the file. If it is in custom/, fix your hook. Otherwise send the full error and the start-up line to support

In game (F8)

You seeCauseFix
Keys like tablet.title instead of textlocale files not sent to clientskeep locales/*.json in files {} in fxmanifest.lua; do not delete them
The tablet opens with no cursor, or the cursor is stuck after closinganother resource holds NUI focuspress Esc (it always closes the page); if the cursor stays, stop the other NUI resource to find the holder
ctablet does nothingoff duty, not an officer, or Config.Tablet.item needs an itemclock on at the locker room; carry the item or set item = nil
Officers cannot clock onjob name differs from Config.Jobs, or on ESX/standalone the duty zone is not reachedmatch Config.Jobs; standalone: give the ACE cc_corrections.officer
A prisoner in the yard is flagged as escapedthe perimeter does not match your mapwalk the fence with /corrections edit, then /corrections export
Doors do not lock, or ox_doorlock lists unknown doorsyour map lacks the Prompt prison interiorConfig.Features.doors = false, or replace shared/doors.lua with your map's doors
Prisoners keep their own clothesthe base game has no jumpsuit for player modelsput your clothing pack's numbers in Config.Uniforms.prisoner
A released prisoner stays in the jumpsuitno clothing script detected and the look was not remembered (restart mid-sentence)add your clothing script to Config.Clothing.providers, or set Config.Clothing.reload to your own function
/prisoncall says the phone is unavailableno phone configuredset Config.Doj.phone.resource and its export names
Interaction prompts never appearno target resource and [E] prompts are hidden by another UIinstall ox_target or qb-target; the yard gym always needs one
The transport van has no keys or no fuelno keys / fuel script detected by cc_libset it explicitly in cc_lib's config
Time does not go downthe prisoner is offline (time is served online only by default), or the dhs backend keeps the timeexpected; see ServerConfig.Sentence

Still stuck

Run /corrections selftest and copy the server start-up line, then contact support with both and the exact error text. Never send server/config.lua: it holds your webhooks.