Skip to content

cc_lib troubleshooting

First, always: type cc in the server console. It prints your artifact, OneSync mode, gamebuild, the resource cc_lib picked for every category, every override and every Cartel resource with its version

First, always: type cc in the server console. It prints your artifact, OneSync mode, gamebuild, the resource cc_lib picked for every category, every override and every Cartel resource with its version. Most problems are visible there. Paste it with any support ticket. Then cc_validate to re-check your config files.

For more detail set Config.LogLevel = 'debug' (or setr cc:loglevel "debug") and restart.


Server console errors

[cc_yourscript] cc_lib is not started. Add 'ensure cc_lib' above 'ensure cc_yourscript' in server.cfg.

A Cartel script started before cc_lib, or cc_lib failed to start. Put ensure cc_lib above every Cartel resource. If it is already there, scroll up for cc_lib's own error.

Could not find dependency cc_lib for resource ... / Failed to load script @cc_lib/init.lua

The folder is not named cc_lib (e.g. cc_lib-main, cc_lib-1.13.0), or it is nested one level too deep (resources/cc_lib/cc_lib/fxmanifest.lua). Rename / move it so resources/.../cc_lib/fxmanifest.lua exists.

cc_lib: no such module 'xyz'

The script is newer than your cc_lib. Update cc_lib to the version the script's changelog asks for.

cc_lib: failed to compile module ... / error initialising module ...

A module file was edited or corrupted (often by an FTP client in ASCII mode). Re-upload the original modules/ folder in binary mode.

[cc_lib] config Bridge.inventory: forced to 'x' but that resource is not started

Config.Bridge names a resource that is not running (typo, wrong folder name, or it starts after cc_lib). Fix the name or start order; until then cc_lib auto-detects.

[cc_lib] config <key>: must be a <type> / unknown setting (typo?)

A value in config.lua has the wrong type or the key is misspelt. The default is in use. Compare with CONFIG.md.

[cc_lib] config config.lua: contains a Discord webhook URL

You put a webhook in the public config.lua — every player can download it. Move it to server/config.lua, then delete and recreate the webhook in Discord (assume it leaked).

config.lua: failed to load / server/config.lua: failed to load

A Lua syntax error (missing comma, quote or }); the message has the line number. Every setting is at its default until fixed.

cc:inventory (convar or Config.Bridge) is set to 'x' but that resource is not started

Same as the Bridge warning above, printed by each resource that uses the module.

no framework: there is no 'bank' account

cc_lib found no framework (standalone). Start your framework before cc_lib, or force it: Config.Bridge.framework = 'qbox' (keys: qbox qb esx ox nd).

society ... REFUSED / society money calls fail

No supported banking/society resource is running, or the job's account does not exist in it. Check the Banking row of cc. Create the job account in your banking resource.

Discord logs never arrive

server/config.lua webhooks empty, or set with setr on another line overriding it, or the URL was regenerated. A 429 in the console means Discord rate-limited you: cc_lib retries by itself. Logs always reach the console and cc_lib:log regardless.


In-game (F8) errors

SCRIPT ERROR: @cc_lib/init.lua ... attempt to index a nil value (global 'CC')

The script's fxmanifest.lua lacks shared_script '@cc_lib/init.lua', or loads its own files before it. The init line must come first.

CC.logger.<x> is server-only / CC.billing.<x> is server-only

Client code called a server module. Move that call to a server script.

Nothing happens when I press the target / no [E] prompt

Check the Target row of cc. If it says native, no target resource was found at the time — start ox_target / qb-target before cc_lib and restart. If your target is a fork, force it: Config.Bridge.target = 'my-target'.

Notifications appear twice, or not at all

Twice: two notify resources both hook the framework notify — force one with Config.Bridge.notify. Not at all while a Cartel UI is open: that is the UI covering them; cc_lib also mirrors the toast into the open page (1.8.0+).

The progress bar finishes but nothing is given

Working as designed when the server rejects it: the server checks the real time elapsed and your distance. Look in the server console for a flagged () -- line (distance check failed for ..., invalid arguments to ..., job check failed for ...). Cooldown and in-flight refusals are silent by design.

[cc_yourscript] flagged <player> (<id>) -- <reason>

A net event arrived that failed its gate (bad arguments, too fast, too far, wrong job). One-off flags are usually lag; repeated flags from one player are a cheat attempt. They are posted to the security webhook.


Still stuck

Collect: the cc output, cc_validate output, the exact error (copy, not a photo), your framework and inventory versions. Open a ticket in The Code Cartel Discord.