Skip to content

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:

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

FrameworkStatusEvidence
Qbox (qbx_core)SupportedBoot + full flow on the simulator; running on a production city
QBCore (qb-core)SupportedBoot + full flow on the simulator
ESX Legacy (es_extended 1.9+)SupportedBoot + full flow on the simulator
ox_coreSupportedBoot + full flow on the simulator
Standalone (no framework)SupportedCash 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

CategoryUsed forDetected (first started wins)Without one
InventoryGear, bait, licence card, cooler item, loot cratesox_inventory, qs-inventory, origen_inventory, codem-inventory, core_inventory, ak47_qb_inventory, tgiann-inventory, qb-inventory, ps-inventory, lj-inventory, mf-inventorythe framework inventory
MoneyLicence, shop, salesthe framework's cash / bankmoney item (standalone)
TargetCounter peds, pier spots, the placed coolerox_target, qb-target, qtarget, bt-target, interact, sleepless_interactbuilt-in [E] prompt
NotifyEvery messageox_lib, okokNotify, mythic_notify, brutal_notify, t-notify, codem-notification, wasabi_notifyframework notify → GTA feed
Skill checkThe biteox_libbuilt-in skill bar
Text UISoak a Line promptox_lib, cd_drawtextui, okokTextUI, qb drawtextnative help text
DatabaseLevels, licences, the catchoxmysql (required)nothing is saved; the console says so
LoggingDiscord webhooks per channelwebhooks, Fivemanage (fmsdk), ox_lib loggerconsole

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

InventoryFile
ox_inventoryinstall/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_inventoryinstall/items/qb-core.lua → qb-core/shared/items.lua
ESX inventory, qs-inventory (esx), core_inventory (esx)install/items/esx.sql
codem, origen, tgiann, mfUse 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 runHow
A job centre with start-up loansServerConfig.Licence.loan = { resource = '<name>', job = 'fishing' }; the resource exports drawStartupLoan(src, job, price) / cancelStartupLoan(src, job)
A supply-chain / wholesale scriptList it in ServerConfig.Supply.buyers; it calls supplyCatch / supplyTake / supplyRestore
A welcome kit / onboarding scriptexports.cc_fishing:grantLicence(src, 'welcome kit')
A durability / wear scriptbeforeCast hook in custom/server.lua (example 5)
A quest / battle-pass / achievements scriptafterCatch, afterSell, afterLevelUp hooks or the cc_fishing:server:* events
A society / tax systemsaleTotal filter (example 2)
A HUD or phone appServer exports getLevel, getXp, getLicenceTier, getCatch, client export isFishing
Cuffs, sedation, teleportsClient export stopFishing()

Server requirements

FXServerA current recommended artifact
OneSyncOn (default). Placed coolers are published in GlobalState and drawn as local props
cc_lib1.6.0+ (1.5.0 works with a framework); the zip ships with the version it was tested on
oxmysqlAny current version
Game buildAny; 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.