cc_lib configuration reference
Three files, one rule each:
Three files, one rule each:
| File | Visible to players? | Holds |
|---|---|---|
config.lua | yes (it is sent to every client) | everything below except webhooks |
server/config.lua | no — never leaves the server | Discord webhook URLs |
locales/<code>.lua | yes | the strings cc_lib shows itself |
These files are never encrypted, in any download. Edit them with any text editor.
Order a value is chosen in: convar in server.cfg → the config file → built-in default. Convars exist so servers that configured cc_lib before 1.13.0 keep working; new setups can ignore them. An empty convar counts as not set.
Mistakes are safe. At start (and with the console command cc_validate) cc_lib checks both files and prints one line per problem — a wrong type, an unknown key, a forced resource that is not running, a webhook in the public file. The bad value is ignored and the default is used; the server keeps running.
After any change: restart cc_lib, then restart the resources that use it (simplest: restart the server).
config.lua
General
| Key | Default | Convar | Meaning |
|---|---|---|---|
Config.LogLevel | 'info' | cc:loglevel | Console verbosity for every resource using cc_lib: error, warn, info, debug. Use debug while chasing a problem. |
Config.StartupReport | true | cc:startup_report | Print the detected-adapter table at boot. |
Config.Locale | 'en' | cc:locale | Language file in locales/. Missing keys fall back to English. |
Config.Bridge — which resource each category uses
Each value is 'auto' (detect, the default), 'none' (off — cc_lib's built-in fallback is used), or a resource name to force (a renamed fork, or one of two installed). The convar for a key is cc:, e.g. setr cc:inventory "ox_inventory".
| Key | Detected (first started wins) — full detail in COMPATIBILITY.md |
|---|---|
framework | qbx_core, qb-core, es_extended, ox_core, ND_Core → standalone. Values are framework keys, not resource names: auto, qbox, qb, esx, ox, nd, standalone |
inventory | ox_inventory, qs-inventory, origen_inventory, codem-inventory, core_inventory, ak47_qb_inventory, tgiann-inventory, qb-inventory, ps-inventory, lj-inventory, mf-inventory → framework |
society | Renewed-Banking, qb-management, qb-banking, esx_addonaccount, okokBanking, fd_banking, qs-banking |
billing | okokBilling, esx_billing → Config.Billing.fallback |
target | ox_target, qb-target, qtarget, bt-target, interact, sleepless_interact → native [E] |
notify | ox_lib, okokNotify, mythic_notify, brutal_notify, t-notify, codem-notification, wasabi_notify → framework → native |
progress | ox_lib, qb-progressbar, progressbar, mythic_progbar, rprogress, esx_progressbar → native |
textui | ox_lib, cd_drawtextui, okokTextUI, qb-core → native |
menu | ox_lib, qb-menu (+ qb-input), esx_context, esx_menu_default, nh-context → native |
minigame | auto (ox_lib skill check when present), ox_lib, native, none |
phone | lb-phone, yseries, gksphone, qs-smartphone-pro, qs-smartphone, npwd, qb-phone → notification |
dispatch | ps-dispatch, cd_dispatch, qs-dispatch, rcore_dispatch, linden_outlawalert, core_dispatch, origen_police, emergencydispatch, lb-tablet → blip + notification |
fuel | ('none'/'native' = the game's own fuel level) Renewed-Fuel, ox_fuel, LegacyFuel, ps-fuel, cdn-fuel, lj-fuel, hyon_gas_station, BigDaddy-Fuel, qs-fuelstations, lc_fuel, qb-fuel, okokGasStation → native |
keys | qbx_vehiclekeys, Renewed-Vehiclekeys, wasabi_carlock, mk_vehiclekeys, qs-vehiclekeys, MrNewbVehicleKeys, tgiann-hotwire, qb-vehiclekeys, cd_garage, okokGarage, vehicles_keys, t1ger_keys, esx_vehiclelock, esx_carlock |
appearance | cc_illumium, illenium-appearance, bl_appearance, fivem-appearance, rcore_clothing, ak47_clothing, ak47_qb_clothing, tgiann-clothing, 17mov_CharacterSystem, qs-appearance, qb-clothing, esx_skin |
garage | jg-advancedgarages, qbx_garages, cd_garage, vms_garagesv2, okokGarage, qb-garages |
doorlock | ox_doorlock, qb-doorlock |
weather | Renewed-Weathersync, qb-weathersync, cd_easytime, vSync → built-in |
character | framework character data; 'none' turns the character signals off |
Config.Money
| Key | Default | Convar | Meaning |
|---|---|---|---|
cashItem | 'money' | cc:cash_item | Item that is cash where cash is an item (ox_inventory, standalone) |
blackItem | 'black_money' | cc:black_item | Item for the black account |
Config.Billing
| Key | Default | Convar | Meaning |
|---|---|---|---|
fallback | 'none' | cc:billing_fallback | With no billing resource: 'none' = CC.billing.send returns false; 'charge' = take it from the target's bank at once and tell them |
Config.Dispatch
| Key | Default | Convar | Meaning |
|---|---|---|---|
jobs | { 'police', 'sheriff', 'ambulance', 'fire' } | cc:dispatch_jobs (comma list) | Jobs the built-in fallback alert may reach (only used when no dispatch resource is installed). A client can never alert a job outside this list. |
Config.Logger — Discord embed look and mirrors
| Key | Default | Convar | Meaning |
|---|---|---|---|
username | 'The Code Cartel' | cc:log_username | Webhook display name |
avatar | '' | cc:log_avatar | Webhook avatar (https image URL) |
footerIcon | '' | cc:log_footer_icon | Embed footer icon |
console | true | cc:log_console | Also print one console line per log |
mirror | 'auto' | cc:log_mirror | Copy logs to fivemanage and/or ox_lib ('auto', 'none', or 'fivemanage,ox_lib') |
fivemanageDataset | 'default' | cc:log_fivemanage_dataset | Fivemanage dataset for older fmsdk builds |
Config.Boost — timed pay/XP multiplier
Off unless you set it. Scripts that support it call CC.boost.pay()/CC.boost.xp() where they pay out.
| Key | Default | Convar | Meaning |
|---|---|---|---|
enabled | false | — (cc:boost_off "true" is a kill switch) | Turn the window on |
start | 0 | cc:boost_start | Unix seconds the boost starts (epochconverter.com) |
finish | 0 | cc:boost_end | Unix seconds it ends (exclusive) |
pay | 1.0 | cc:boost_pay | Pay multiplier, 1.0 – 3.0 |
xp | 1.0 | cc:boost_xp | XP multiplier, 1.0 – 5.0 |
Setting cc:boost_start or cc:boost_end by convar also enables it (older setups).
Config.Homebar — the player card in Cartel UIs
| Key | Default | Convar | Meaning |
|---|---|---|---|
idResource | 'tcc_gms' | cc:gms | Resource asked (read only) for the character's ID name and portrait; 'none' = initials only |
avatarHosts | fivemanage, imgur, discord CDN | cc:avatarhosts (comma list) | Hosts a portrait URL may come from (https only) |
cacheSeconds | 300 | cc:gmscache | How long a lookup is cached per character |
server/config.lua
ServerConfig.Webhooks = {
default = '', -- everything without its own channel
security = '', -- cheat attempts flagged by CC.security
economy = '',
admin = '',
}Any channel a script logs to can be added here by name. Convar alternative: set cc:webhook_ "https://discord.com/api/webhooks/..." — set, never setr: setr sends the value to every player.
Leave everything '' and logs still go to the console, the cc_lib:log server event and Fivemanage/ox_lib if installed.
A product that calls CC.logger.setup{...} with its own webhooks uses those instead.
locales/
Copy en.lua to .lua, change Locales['en'] to Locales[''], translate the right-hand side (keep %s), set Config.Locale = ''.
Convar-only settings
| Convar | Meaning |
|---|---|
cc:boost_off "true" | Kill switch for CC.boost, beats everything |
cc:log_society_webhook | Webhook for society money movements (set) |
inventory:clearstashes | Read from ox_inventory's own convar when clearing stashes |