cc_fishing — configuration reference
Two files, both outside escrow and both validated on boot: a typo prints one console line naming the key and the resource keeps running; an entry that would make money from nothing (a resale above its
Two files, both outside escrow and both validated on boot: a typo prints one console line naming the key and the resource keeps running; an entry that would make money from nothing (a resale above its price, a kit cheaper than its contents) is switched off for the run and reported.
| File | Who can read it | Holds |
|---|---|---|
config.lua | every player (it is downloaded to each client) | places, items, gear, the shop catalogue, labels, controls, visuals, ACE names |
server/config.lua | the server only | every price, payout, odd, weight, XP value, cap, distance, cooldown and webhook |
The rule: if a player must not know a value, it lives in server/config.lua.
Language is a convar, not a config key: setr cc_fishing_locale "de" (en, de, fr, es, pt ship; add your own as locales/.json).
Framework / inventory / target / notify / skill-check detection is done by cc_lib. To force one, set it once for every Code Cartel script: setr cc:inventory "qs-inventory" (or Config.Bridge.inventory in cc_lib's config). See COMPATIBILITY.md.
config.lua (public)
General
| Key | Type | Default | What it does |
|---|---|---|---|
Config.Preset | string | nil | nil | Loads presets/<name>.lua + presets/server/<name>.lua over these defaults. See Presets below |
Config.Debug | boolean | false | Prints refused events and state changes to the console |
Config.Features — every feature can be switched off
Off is off on the server too: the matching events refuse and the hub hides the tab.
| Key | Default | Off means |
|---|---|---|
licence | true | No licence card: tiers unlock by angler level alone |
shop | true | No supplies counter (gear comes from your own shops / admin) |
sellBack | true | The shop does not buy used gear back |
starterKit | true | No Starter Kit bundle at registration |
coolerUpgrades | true | Everyone keeps the tier-1 cooler |
rebates | true | No rebate credits per catch |
market | true | No fish market (sell through ServerConfig.Supply buyers instead) |
pier | true | No cooler-less fishing (pier spots and "fish anywhere" both need this) |
cooler | true | No placeable cooler |
soak | true | No Soak a Line (AFK mode) |
skillCheck | true | A bite lands without a skill check |
lineBreak | true | A lost fight never snaps the line |
boosts | true | No admin XP / credit boosts |
spectators | true | Other players do not see your rod, line and catch |
ropeLine | true | A drawn line instead of the physical rope |
levelUpNotice | true | No notification on level up |
Items and images
| Key | Default | What it does |
|---|---|---|
Config.Items.licence | 'fishing_license' | Your inventory's name for the licence card |
Config.Items.cooler | 'fishing_cooler' | Your inventory's name for the placeable cooler (usable) |
Config.Images.base | 'bundled' | 'bundled' = web/img/<item>.png; or a folder such as 'nui://ox_inventory/web/images/' |
Config.Images.extension | '.png' | Image file extension |
Gear item names are in Config.Gear[].item.
Places
| Key | What it does |
|---|---|
Config.Locations[] | Counters. id, label, coords (vec4), model (ped), scenario, blip = { sprite, colour, scale, label, shortRange } or nil, services = { licence, shop, market, catch } |
Config.Pier.spots | vec4[] — spots where a cooler-less cast is always allowed |
Config.Pier.targetRadius | Interaction sphere per spot (m) |
Config.Pier.marker | A small ground marker on each spot when close |
Config.Pier.catch | { slots, weight } — capacity of the pier catch store |
The default counter and spots are on the Del Perro pier (vanilla map) and are placeholders: stand on the spot, run /ccfishing coords and paste the printed vec4(...).
Progression and gear
| Key | What it does |
|---|---|
Config.LicenceTiers[] | { label, level } — the angler level each tier needs (tier 1 = registration) |
Config.Levels | Total XP for each angler level (level 1 = 0) |
Config.Gear[] | Every rod / line / reel / hook / bait: id, item, kind, licence (tier), label; reels add skillBonus |
Config.RodSlots | Which lines, reels and hooks each rod takes |
Config.HookBaits | Which baits each hook holds |
Config.Shop[] | The counter catalogue, in display order: { id, kind = 'gear' | 'cooler' | 'kit', gear / tier } (prices in ServerConfig.Shop) |
Config.Cooler.model | Prop of the placed cooler (default prop_coolbox_01) |
Config.Cooler.tiers[] | { label, slots, weight } per cooler tier |
Config.Cooler.preview | Placement-preview tuning (start offset, nudge speed, max distance, ground probe) — cosmetic |
Config.Fish[item] | What the player sees of a species: label, tier 1..4, prop (model / false), propScale, attach, throwBackOnly, toPockets, catchText |
Config.FishModel | The ambient fish model on the hook and in the hand |
Config.SkillCheck | inputs (keys) and stagesByTier (difficulty names per fish tier) |
Controls, water check, visuals
| Key | What it does |
|---|---|
Config.Controls | cast (E), rig (Q), menu (F), stopSoak (X) — control ids |
Config.Water | The client's courtesy water check: style, probe lengths, allowBoats |
Config.Visuals | Rod model, cast animation, rope tuning, reel-in / throw-back motion, bite sound, spectatorRadius |
Config.Soak | Bucket and rod models and the sitting animation |
Admin and brand
| Key | Default | What it does |
|---|---|---|
Config.Ace | cc_fishing.admin | Boost panel, give, XP |
Config.AceManage | cc_fishing.manage | Reset a character's catch, run the importer |
Config.AceSurvey | cc_fishing.survey | /ccfishing coords |
Config.Command | ccfishing | The admin command name |
Config.Brand.name | Harbour Master | Hub title when a location has no label |
Config.Brand.accent | #12324a | Chrome bar and primary buttons (#rrggbb; keep it dark enough for white text) |
server/config.lua (secret)
| Key | What it does |
|---|---|
ServerConfig.Licence | price, replacement, upgrades[tier], accounts, starterCooler, replacementCooler, and loan (below) |
ServerConfig.Licence.loan | { resource, job } — a resource exporting drawStartupLoan(src, job, price) and cancelStartupLoan(src, job) that may cover the licence for a player who cannot pay. nil = no loans |
ServerConfig.Shop[id] | price, rebate (credits; nil = not for credits), resale (buy-back, 0 = never) |
ServerConfig.ShopRules | Accepted accounts, maxQuantity per purchase |
ServerConfig.StarterKit | Its items (must cost more than their resale) |
ServerConfig.Fish[item] | chance, weight {min,max} kg, price {min,max} $/kg, xp, rebate, minLicence / maxLicence |
ServerConfig.CrossTier, ServerConfig.Bait | Which tiers each bait reaches |
ServerConfig.Cast | biteSec, windowMs, earlySlackMs, keepWithinMs, anywhere (cast from any shore; false = pier spot or cooler only), moveMax (m the angler may walk before the cast is lost) |
ServerConfig.LandCap | enabled, perHour — rolling cap on fish landed per character (off by default) |
ServerConfig.Junk | enabled, chance, items[] — junk items a kept catch may bring up (off by default) |
ServerConfig.LineBreak | % a lost fight snaps each line |
ServerConfig.Market | periodSeconds, priceScale (retune every fish price with one number), maxPerFish, sellAllCap, account, coolerMustBeNear |
ServerConfig.Boosts | Allowed multipliers, longest boost |
ServerConfig.Soak | The AFK maths: biteSec, slipChance, weightMult, maxSessionMin, maxCatches, restMin, leash, xpAndRebates |
ServerConfig.Distances | The anti-cheat's measurements (counter, pier spot, cooler cast / place / pickup / market, supply) |
ServerConfig.Supply.buyers | Resource names allowed to call the wholesale exports (supplyCatch / supplyTake / supplyRestore) |
ServerConfig.CastAreas | { { coords = vec3, radius } } — a server-side fence: casts only inside these circles. Empty = no fence |
ServerConfig.Cooldowns | Per-event cooldowns (ms) |
ServerConfig.Webhooks | default, economy, catch, admin, security — or set cc_fishing_webhook_<channel> "..." (never setr) |
ServerConfig.Logs | Webhook name; log every kept / lost fish |
The economy in one number
Defaults aim at roughly $30–40k an hour of active fishing (tier 1 → 4), a good side income where a legal job pays $15–30k/h. ServerConfig.Market.priceScale = 2.0 doubles every fish price; 0.5 halves it. The test suite prints the hourly figure per tier ([info] T1 $32197/h ...).
Where fishing is allowed
| Setting | Result |
|---|---|
Cast.anywhere = true (default) | Any spot the client sees as water. The catch goes to the pier catch store |
Cast.anywhere = false | Only at a Config.Pier.spots entry or within Distances.coolerCast of the angler's own cooler |
CastAreas = { ... } | Either of the above, but only inside the listed circles (the server's own fence) |
Presets
| Preset | What it gives you |
|---|---|
nil (default) | One Harbour Master and eight spots on the Del Perro pier |
'coast' | Plus three harbours on the vanilla map — Chumash pier, the Alamo Sea dock and Paleto Bay — each with a full counter and four pier spots. Every coordinate was ray-tested against the game's collision |
'example' | A template to copy: a second, fish-only counter and a richer economy |
A preset overrides parts of both configs in one switch. presets/example.lua and presets/server/example.lua ship as a template (a second, fish-only counter and a richer economy). Copy both to presets/.lua and presets/server/.lua, change the guard line to your name, and set Config.Preset = ''.
custom/ — change behaviour without the source
custom/server.lua and custom/client.lua load last, stay outside escrow and survive updates. Register hooks there (see EXPORTS.md → Hooks); five worked examples ship commented out: a storm closure, a fish tax, a quest counter, dearer licences, rod durability.