cc_fishing
A complete fishing career for FiveM. Register at the Harbour Master, rig a rod from gear that has to go together, fish from any shore, a pier spot or beside your own cooler, land the bite with a skill
A complete fishing career for FiveM. Register at the Harbour Master, rig a rod from gear that has to go together, fish from any shore, a pier spot or beside your own cooler, land the bite with a skill check, and sell the catch by weight at a market whose prices move every hour. Twenty angler levels unlock four licence tiers, better gear, bigger coolers and bigger fish. A slow AFK mode lets a line soak.
Every catch is rolled by the server. A modified client can fake a skill check, but never what is on the hook, what it weighs or what it pays.
Requirements
| cc_lib | 1.6.0 or newer (the only code dependency; 1.5.0 works on a server with a framework) |
| oxmysql | any current version — holds levels, licences and the catch |
| OneSync | on (the default). Placed coolers are published in GlobalState and drawn as local props |
| Framework | ESX, QBCore, Qbox, ox_core, or none — detected by cc_lib |
| Inventory | ox_inventory, qb-inventory and forks, qs-inventory, ESX — through cc_lib |
| Optional | a target resource (ox_target, qb-target…); ox_lib for its skill check. Without them cc_lib's built-in [E] prompt and skill check are used |
Documentation
| INSTALL.md | Five-minute install, items per inventory, placing it on your map, updating |
| CONFIG.md | Every key in config.lua and server/config.lua |
| EXPORTS.md | Server and client exports, events, hooks, wholesale-buyer API |
| COMPATIBILITY.md | Frameworks, inventories, targets, notify, plugging in other scripts |
| TROUBLESHOOTING.md | Console messages and in-game symptoms, with fixes |
| CHANGELOG.md | What changed in each version |
How it plays
- Register at the Harbour Master: a licence card (tier A), a cooler, and optionally the Starter Kit (rod, line, reel, hook, 10 worms). The kit is once per character.
- Rig up. Use a rod (or the target on a pier spot / your cooler) to open Rig Setup and pick a rod, line, reel, hook and bait you own. Each rod takes certain lines, reels and hooks (
Config.RodSlots); each hook holds certain baits (Config.HookBaits); each needs a licence tier. - Fish. Face the water anywhere on the shore (or at a pier spot, or beside your placed cooler, whose catch then goes straight into it).
Ecasts. The server takes one bait, rolls the bite time, the species and the weight. When it bites, hit the skill check. - Keep or throw back. Shore and pier catches go to your pier catch (30 fish / 60 kg); catches beside your cooler go into the cooler (20–60 fish by tier). Junk can only go back in.
- Sell at the Harbour Master: one fish or all of them. Prices are per kg, one value per species per hour, the same for everyone. Cooler fish need the cooler beside the counter (configurable).
- Level up. XP per fish kept; tiers B–D need levels 5 / 10 / 15 and open better gear, shrimp → pilchard → cut-fish bait and the bigger species.
- Soak a Line (optional): sit at a spot or by your cooler and let the server fish — slower bites, some slip off, lighter fish, cash only, capped sittings with a rest.
Configuration in one minute
Two files, both outside escrow and validated on boot. config.lua (public: places, gear, labels, 16 feature switches) and server/config.lua (secret: every price, odd and cap). ServerConfig.Market.priceScale retunes the whole economy with one number. Presets switch a whole setup at once; custom/server.lua changes behaviour through hooks. Full reference: CONFIG.md.
Admin
| Command | ACE | |
|---|---|---|
/ccfishing panel | cc_fishing.admin | The boost panel (XP / credits ×2 or ×3 for a time) |
/ccfishing boost <xp|rebate> <2|3> <minutes> / boost clear | cc_fishing.admin | Same, from the console |
/ccfishing give <id> <gear id> [count] | cc_fishing.admin | e.g. give 3 bait_worm 20 |
/ccfishing xp <id> <amount> | cc_fishing.admin | |
/ccfishing reset <id> | cc_fishing.manage | Empties a character's catch |
/ccfishing import [dry|run] | cc_fishing.manage | Import an acc_fishing install (below) |
/ccfishing coords | cc_fishing.survey | Prints a vec4(...) of where you stand |
Moving from acc_fishing
/ccfishing import (dry run) prints what would move; /ccfishing import run imports: licences, tiers, XP, credits, cooler tiers and saved rigs from acc_fishing; every fish in the acc_fishing_cooler_* / acc_fishing_pier_* stashes (and cooler snapshots in acc_fishing_coolers); a boost still running. Running it twice imports once; the old tables are only read. The Starter Kit flag lived in the old resource's KVP and cannot be read, so an imported angler can buy one more kit.
Exports, events, hooks
Read-only exports for HUDs, phones and job centres (getLevel, getLicenceTier, getCatch, ...), a free-licence export for welcome kits, client exports (isFishing, stopFishing), six server events, four client events and eight hooks that can only narrow what the script does. Full list with arguments: EXPORTS.md.
Logs
Console always; Discord per channel when a webhook is set: economy (licences, purchases, sales, buy-backs), catch (kept, thrown back, soak sittings, line snaps, cooler moves), admin (boosts, give, XP, reset, import), security (every flag, collapsed per player per minute). Player text is sanitised by cc_lib's logger.
Restarts and disconnects
| In flight | What happens |
|---|---|
| A cast (before or after the bite) | Void. The bait is spent; nothing is granted. |
| A landed fish not yet kept | Lost (the ticket dies with the player or the resource). |
| A placed cooler | The prop is removed; the item comes back the next time the character is seen (once). |
| Soak a Line | The sitting ends; the fish already landed are kept. |
| The catch store | Every fish is a database row the moment it is kept: nothing to lose. |
Performance
Nothing runs at rest: one distance check a second near the pier markers (none when far), a 5-second sweep for other anglers' visuals. Per-frame loops exist only while a rig session, a cast, the cooler preview or a soak is on screen. The server's only loop runs while someone is soaking. Measured numbers: PRODUCT.md (needs an in-game pass).
Troubleshooting
See TROUBLESHOOTING.md. The most common one: on ox_inventory the rods and the cooler need server = { export = 'cc_fishing.useItem' } or using them does nothing.
Verify
lua tests/verify.lua (static rules, 830 checks), lua tests/boot.lua (the real resource on cc_lib's simulator on five stacks), lua tests/data.lua (install, upgrade, importer).