Skip to content

cc_lib configuration reference

Three files, one rule each:

Three files, one rule each:

FileVisible to players?Holds
config.luayes (it is sent to every client)everything below except webhooks
server/config.luano — never leaves the serverDiscord webhook URLs
locales/<code>.luayesthe 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

KeyDefaultConvarMeaning
Config.LogLevel'info'cc:loglevelConsole verbosity for every resource using cc_lib: error, warn, info, debug. Use debug while chasing a problem.
Config.StartupReporttruecc:startup_reportPrint the detected-adapter table at boot.
Config.Locale'en'cc:localeLanguage 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".

KeyDetected (first started wins) — full detail in COMPATIBILITY.md
frameworkqbx_core, qb-core, es_extended, ox_core, ND_Core → standalone. Values are framework keys, not resource names: auto, qbox, qb, esx, ox, nd, standalone
inventoryox_inventory, qs-inventory, origen_inventory, codem-inventory, core_inventory, ak47_qb_inventory, tgiann-inventory, qb-inventory, ps-inventory, lj-inventory, mf-inventory → framework
societyRenewed-Banking, qb-management, qb-banking, esx_addonaccount, okokBanking, fd_banking, qs-banking
billingokokBilling, esx_billing → Config.Billing.fallback
targetox_target, qb-target, qtarget, bt-target, interact, sleepless_interact → native [E]
notifyox_lib, okokNotify, mythic_notify, brutal_notify, t-notify, codem-notification, wasabi_notify → framework → native
progressox_lib, qb-progressbar, progressbar, mythic_progbar, rprogress, esx_progressbar → native
textuiox_lib, cd_drawtextui, okokTextUI, qb-core → native
menuox_lib, qb-menu (+ qb-input), esx_context, esx_menu_default, nh-context → native
minigameauto (ox_lib skill check when present), ox_lib, native, none
phonelb-phone, yseries, gksphone, qs-smartphone-pro, qs-smartphone, npwd, qb-phone → notification
dispatchps-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
keysqbx_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
appearancecc_illumium, illenium-appearance, bl_appearance, fivem-appearance, rcore_clothing, ak47_clothing, ak47_qb_clothing, tgiann-clothing, 17mov_CharacterSystem, qs-appearance, qb-clothing, esx_skin
garagejg-advancedgarages, qbx_garages, cd_garage, vms_garagesv2, okokGarage, qb-garages
doorlockox_doorlock, qb-doorlock
weatherRenewed-Weathersync, qb-weathersync, cd_easytime, vSync → built-in
characterframework character data; 'none' turns the character signals off

Config.Money

KeyDefaultConvarMeaning
cashItem'money'cc:cash_itemItem that is cash where cash is an item (ox_inventory, standalone)
blackItem'black_money'cc:black_itemItem for the black account

Config.Billing

KeyDefaultConvarMeaning
fallback'none'cc:billing_fallbackWith no billing resource: 'none' = CC.billing.send returns false; 'charge' = take it from the target's bank at once and tell them

Config.Dispatch

KeyDefaultConvarMeaning
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

KeyDefaultConvarMeaning
username'The Code Cartel'cc:log_usernameWebhook display name
avatar''cc:log_avatarWebhook avatar (https image URL)
footerIcon''cc:log_footer_iconEmbed footer icon
consoletruecc:log_consoleAlso print one console line per log
mirror'auto'cc:log_mirrorCopy logs to fivemanage and/or ox_lib ('auto', 'none', or 'fivemanage,ox_lib')
fivemanageDataset'default'cc:log_fivemanage_datasetFivemanage 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.

KeyDefaultConvarMeaning
enabledfalse— (cc:boost_off "true" is a kill switch)Turn the window on
start0cc:boost_startUnix seconds the boost starts (epochconverter.com)
finish0cc:boost_endUnix seconds it ends (exclusive)
pay1.0cc:boost_payPay multiplier, 1.0 – 3.0
xp1.0cc:boost_xpXP 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

KeyDefaultConvarMeaning
idResource'tcc_gms'cc:gmsResource asked (read only) for the character's ID name and portrait; 'none' = initials only
avatarHostsfivemanage, imgur, discord CDNcc:avatarhosts (comma list)Hosts a portrait URL may come from (https only)
cacheSeconds300cc:gmscacheHow long a lookup is cached per character

server/config.lua

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

ConvarMeaning
cc:boost_off "true"Kill switch for CC.boost, beats everything
cc:log_society_webhookWebhook for society money movements (set)
inventory:clearstashesRead from ox_inventory's own convar when clearing stashes