cc_tradie compatibility
cc_tradie talks to your server only through cc_lib. cc_lib detects what you run when the resource first needs it (first started resource in its list wins), and every category has a fallback, so cc_tra
cc_tradie talks to your server only through cc_lib. cc_lib detects what you run when the resource first needs it (first started resource in its list wins), and every category has a fallback, so cc_tradie starts on a bare server with nothing but cc_lib and oxmysql.
To force a choice, set it in cc_lib: Config.Bridge. in cc_lib/config.lua, or the cc: convar (set cc:inventory "qs-inventory"). 'none' turns a category off. cc_tradie has no bridge code of its own to edit.
Evidence: Sim = cc_tradie's own test suites boot the real resource on cc_lib's simulator with that stack and drive a whole shift through real net events (tests/boot.lua). cc_lib = covered by cc_lib's own adapter tests and docs, used by cc_tradie through the same calls. In game = run on a live server.
Frameworks
| Framework | Works | Evidence | Notes |
|---|---|---|---|
Qbox (qbx_core) | yes | Sim, In game (1.2.0 on a live Qbox city) | |
QBCore (qb-core) | yes | Sim | |
ESX Legacy (es_extended) | yes | Sim | |
| ox_core | yes | cc_lib | money as items |
| Standalone (no framework) | yes | Sim (every category none) | identifier = licence; Config.Job.required needs a framework |
What cc_tradie uses, and the fallback
| Category | Used for | Popular resources supported (via cc_lib) | Without one |
|---|---|---|---|
| Inventory | spare parts, finds, unloading the chest | ox_inventory, qs-inventory, origen, codem, core_inventory, tgiann, qb-inventory, ps-inventory, lj-inventory, ak47, mf | the framework's inventory |
| Money | buying the jackhammer, parts, upgrades; wages | the framework's cash / bank (ServerConfig.Payment.account) | items |
| Target | the foreman and the truck's tool chest | ox_target, qb-target, qtarget, bt-target, interact, sleepless_interact | an [E] prompt at the ped and the truck |
| Notify | every message | ox_lib, okokNotify, mythic_notify, brutal_notify, t-notify, codem-notification, wasabi_notify | the framework's notify, then the GTA feed |
| Text UI | the "press E to drill" prompt | ox_lib, cd_drawtextui, okokTextUI, qb drawtext | native help text |
| Vehicle keys | keys to the work truck for every crew member | qbx_vehiclekeys, Renewed-Vehiclekeys, wasabi_carlock, mk_vehiclekeys, qs-vehiclekeys, MrNewbVehicleKeys, qb-vehiclekeys, cd_garage, okokGarage, jaksam vehicles_keys, t1ger_keys | the truck is unlocked |
| Fuel | the truck's starting fuel | Renewed-Fuel, ox_fuel, LegacyFuel, ps-fuel, cdn-fuel, lj-fuel, lc_fuel, qb-fuel, okokGasStation, qs-fuelstations, BigDaddy-Fuel, hyon_gas_station | the game's fuel level |
| Logging | staff logs | Discord webhooks, Fivemanage, ox_lib logger, cc_lib:log event | console |
| Pay/XP boost | double-pay weekends | cc_lib 1.13+ CC.boost (Config.Features.boost) | no boost |
Not needed
| Category | Why |
|---|---|
| Progress bar | the drill is cc_tradie's own pressure-gauge minigame; the server enforces the time |
| Clothing / appearance | the uniform is set with game natives and your own clothes are restored on clock-off, on death and on resource stop. It works next to illenium-appearance, fivem-appearance, qb-clothing, esx_skin and the rest, and never writes to their saved outfits. Turn it off with Config.Features.uniform = false |
| Phone | nothing to send; use the cc_tradie:client:* events or custom/client.lua to push your own phone notifications |
| Dispatch | a legal job: nothing is reported to police |
| Banking / society | wages are paid from nowhere into the player's own account; no society account is touched |
| ox_lib | not required (used through cc_lib when present) |
Maps
Every default location (the depot on Route 68 and the 13 dig sites in the Grand Senora Desert) is on vanilla terrain with no MLO, so it works on any map. Moving them is config.lua (depot, truck bays) and config_sites.lua (sites, return zone).
Database
oxmysql only. Tables are created and migrated on start (CREATE TABLE IF NOT EXISTS, numbered migrations that are safe to run twice). MySQL 5.7+ / MariaDB 10.3+.
Artifacts and OneSync
Lua 5.4 (lua54 'yes'), any current recommended FXServer build. OneSync must be on: the truck is a server-side vehicle and its condition is read by the server.
Languages
English (complete). de, es, fr, pt ship as starters that fall back to English for any missing key. Add a language by copying locales/en.json.
Known limits
- esx_vehiclelock / esx_carlock have no key API: crews use the truck unlocked.
- Standalone has no jobs, so
Config.Job.required = truerefuses everyone there. - A renamed inventory fork is found by forcing it in cc_lib (
Config.Bridge.inventory).