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: readyThen 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
| Message | Cause | Fix |
|---|---|---|
[config] <key> ... (red) | a setting has the wrong type or range | the 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: UNAVAILABLE | oxmysql not started first, or no connection string | ensure 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.0 | old bridge | update cc_lib |
Couldn't load resource cc_corrections / nothing at all | cc_lib missing, or the folder was renamed | ensure cc_lib before it; keep the folder name cc_corrections (the NUI and events use it) |
[config] <X> names '<resource>', which is not started | an integration in config points at a resource that is not running | start it, or set that option to nil / false |
[config] job 'corrections' is not defined in your framework | the job block was never added | paste install/jobs/qbox.lua, qbcore.lua or run esx.sql; restart |
[config] ... item '<name>' does not exist in your inventory | the loadout, canteen or meal names an item your inventory lacks | add it from install/items/, or change the name in server/config.lua |
[config] ServerConfig.MinSeconds.<x> ... honest players will be refused | the server floor is longer than the progress bar | lower the floor below the bar time |
Config.Preset = '<name>' matches no presets/<name>.lua | a preset name with no file | create presets/<name>.lua (copy presets/example.lua) or set Config.Preset = nil |
api.actor returned to an MDT | the calling resource is not trusted | add it to ServerConfig.Api.trustedSystems |
SCRIPT ERROR: @cc_corrections/... | a bug, or a hook in custom/server.lua threw | the 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 see | Cause | Fix |
|---|---|---|
Keys like tablet.title instead of text | locale files not sent to clients | keep locales/*.json in files {} in fxmanifest.lua; do not delete them |
| The tablet opens with no cursor, or the cursor is stuck after closing | another resource holds NUI focus | press Esc (it always closes the page); if the cursor stays, stop the other NUI resource to find the holder |
ctablet does nothing | off duty, not an officer, or Config.Tablet.item needs an item | clock on at the locker room; carry the item or set item = nil |
| Officers cannot clock on | job name differs from Config.Jobs, or on ESX/standalone the duty zone is not reached | match Config.Jobs; standalone: give the ACE cc_corrections.officer |
| A prisoner in the yard is flagged as escaped | the perimeter does not match your map | walk the fence with /corrections edit, then /corrections export |
| Doors do not lock, or ox_doorlock lists unknown doors | your map lacks the Prompt prison interior | Config.Features.doors = false, or replace shared/doors.lua with your map's doors |
| Prisoners keep their own clothes | the base game has no jumpsuit for player models | put your clothing pack's numbers in Config.Uniforms.prisoner |
| A released prisoner stays in the jumpsuit | no 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 unavailable | no phone configured | set Config.Doj.phone.resource and its export names |
| Interaction prompts never appear | no target resource and [E] prompts are hidden by another UI | install ox_target or qb-target; the yard gym always needs one |
| The transport van has no keys or no fuel | no keys / fuel script detected by cc_lib | set it explicitly in cc_lib's config |
| Time does not go down | the prisoner is offline (time is served online only by default), or the dhs backend keeps the time | expected; 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.