cc_fishing — compatibility
cc_fishing talks to your framework and scripts only through cc_lib (the free Code Cartel bridge). cc_lib detects what is running when the server starts, and falls back to a built-in version when nothi
cc_fishing talks to your framework and scripts only through cc_lib (the free Code Cartel bridge). cc_lib detects what is running when the server starts, and falls back to a built-in version when nothing is installed. You never edit cc_fishing to change stack.
Force a choice when auto-detection picks the wrong one (one line, for every Code Cartel script at once), in server.cfg:
setr cc:framework "qb" # qbox | qb | esx | ox | standalone
setr cc:inventory "qs-inventory"
setr cc:target "ox_target" # or "none" for the built-in [E] prompt
setr cc:notify "okokNotify"
setr cc:textui "ox_lib"Frameworks
| Framework | Status | Evidence |
|---|---|---|
Qbox (qbx_core) | Supported | Boot + full flow on the simulator; running on a production city |
QBCore (qb-core) | Supported | Boot + full flow on the simulator |
ESX Legacy (es_extended 1.9+) | Supported | Boot + full flow on the simulator |
| ox_core | Supported | Boot + full flow on the simulator |
| Standalone (no framework) | Supported | Cash is the money item (cc_lib 1.6.0+); identifier = licence |
Characters: progress, licence, rig and catch are stored per character (the framework's citizen / character id), so multicharacter scripts work out of the box.
What cc_fishing uses, per category
| Category | Used for | Detected (first started wins) | Without one |
|---|---|---|---|
| Inventory | Gear, bait, licence card, cooler item, loot crates | ox_inventory, qs-inventory, origen_inventory, codem-inventory, core_inventory, ak47_qb_inventory, tgiann-inventory, qb-inventory, ps-inventory, lj-inventory, mf-inventory | the framework inventory |
| Money | Licence, shop, sales | the framework's cash / bank | money item (standalone) |
| Target | Counter peds, pier spots, the placed cooler | ox_target, qb-target, qtarget, bt-target, interact, sleepless_interact | built-in [E] prompt |
| Notify | Every message | ox_lib, okokNotify, mythic_notify, brutal_notify, t-notify, codem-notification, wasabi_notify | framework notify → GTA feed |
| Skill check | The bite | ox_lib | built-in skill bar |
| Text UI | Soak a Line prompt | ox_lib, cd_drawtextui, okokTextUI, qb drawtext | native help text |
| Database | Levels, licences, the catch | oxmysql (required) | nothing is saved; the console says so |
| Logging | Discord webhooks per channel | webhooks, Fivemanage (fmsdk), ox_lib logger | console |
Not used by a fishing career, so nothing to configure: phone, fuel, vehicle keys, clothing, dispatch, garages, doors, society banking. (A start-up loan from a job centre, a wholesale buyer and a durability script plug in through config, exports and hooks; see below.)
Items per inventory
| Inventory | File |
|---|---|
| ox_inventory | install/items/ox_inventory.lua → ox_inventory/data/items.lua. Keep server = { export = 'cc_fishing.useItem' } on the rods and the cooler |
| qb-inventory, ps-inventory, lj-inventory, qs-inventory (qb), ak47_qb_inventory | install/items/qb-core.lua → qb-core/shared/items.lua |
| ESX inventory, qs-inventory (esx), core_inventory (esx) | install/items/esx.sql |
| codem, origen, tgiann, mf | Use the qb-core block as the source: name, label, weight, useable = true on rods and the cooler |
Images: install/images/*.png into your inventory's image folder, or keep Config.Images.base = 'bundled' (the NUI then uses its own copies).
The fish are not inventory items. The catch lives in cc_fishing's own table, so it works the same on every inventory and never fills a player's pockets. Only toPockets species (a loot crate you define) become items.
Plugging in other scripts
| You run | How |
|---|---|
| A job centre with start-up loans | ServerConfig.Licence.loan = { resource = '<name>', job = 'fishing' }; the resource exports drawStartupLoan(src, job, price) / cancelStartupLoan(src, job) |
| A supply-chain / wholesale script | List it in ServerConfig.Supply.buyers; it calls supplyCatch / supplyTake / supplyRestore |
| A welcome kit / onboarding script | exports.cc_fishing:grantLicence(src, 'welcome kit') |
| A durability / wear script | beforeCast hook in custom/server.lua (example 5) |
| A quest / battle-pass / achievements script | afterCatch, afterSell, afterLevelUp hooks or the cc_fishing:server:* events |
| A society / tax system | saleTotal filter (example 2) |
| A HUD or phone app | Server exports getLevel, getXp, getLicenceTier, getCatch, client export isFishing |
| Cuffs, sedation, teleports | Client export stopFishing() |
Server requirements
| FXServer | A current recommended artifact |
| OneSync | On (default). Placed coolers are published in GlobalState and drawn as local props |
| cc_lib | 1.6.0+ (1.5.0 works with a framework); the zip ships with the version it was tested on |
| oxmysql | Any current version |
| Game build | Any; no DLC assets are needed |
Maps
All positions are config. The defaults use the vanilla Del Perro pier. Config.Preset = 'coast' adds Chumash pier, the Alamo Sea dock and Paleto Bay. Any pier, lake or harbour MLO works: put a counter there (Config.Locations) and survey the spots with /ccfishing coords. With Cast.anywhere (default) players can fish from any shore anyway.