Skip to content

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.

FileWho can read itHolds
config.luaevery player (it is downloaded to each client)places, items, gear, the shop catalogue, labels, controls, visuals, ACE names
server/config.luathe server onlyevery 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

KeyTypeDefaultWhat it does
Config.Presetstring | nilnilLoads presets/<name>.lua + presets/server/<name>.lua over these defaults. See Presets below
Config.DebugbooleanfalsePrints 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.

KeyDefaultOff means
licencetrueNo licence card: tiers unlock by angler level alone
shoptrueNo supplies counter (gear comes from your own shops / admin)
sellBacktrueThe shop does not buy used gear back
starterKittrueNo Starter Kit bundle at registration
coolerUpgradestrueEveryone keeps the tier-1 cooler
rebatestrueNo rebate credits per catch
markettrueNo fish market (sell through ServerConfig.Supply buyers instead)
piertrueNo cooler-less fishing (pier spots and "fish anywhere" both need this)
coolertrueNo placeable cooler
soaktrueNo Soak a Line (AFK mode)
skillChecktrueA bite lands without a skill check
lineBreaktrueA lost fight never snaps the line
booststrueNo admin XP / credit boosts
spectatorstrueOther players do not see your rod, line and catch
ropeLinetrueA drawn line instead of the physical rope
levelUpNoticetrueNo notification on level up

Items and images

KeyDefaultWhat 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

KeyWhat 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.spotsvec4[] — spots where a cooler-less cast is always allowed
Config.Pier.targetRadiusInteraction sphere per spot (m)
Config.Pier.markerA 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

KeyWhat it does
Config.LicenceTiers[]{ label, level } — the angler level each tier needs (tier 1 = registration)
Config.LevelsTotal 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.RodSlotsWhich lines, reels and hooks each rod takes
Config.HookBaitsWhich 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.modelProp of the placed cooler (default prop_coolbox_01)
Config.Cooler.tiers[]{ label, slots, weight } per cooler tier
Config.Cooler.previewPlacement-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.FishModelThe ambient fish model on the hook and in the hand
Config.SkillCheckinputs (keys) and stagesByTier (difficulty names per fish tier)

Controls, water check, visuals

KeyWhat it does
Config.Controlscast (E), rig (Q), menu (F), stopSoak (X) — control ids
Config.WaterThe client's courtesy water check: style, probe lengths, allowBoats
Config.VisualsRod model, cast animation, rope tuning, reel-in / throw-back motion, bite sound, spectatorRadius
Config.SoakBucket and rod models and the sitting animation

Admin and brand

KeyDefaultWhat it does
Config.Acecc_fishing.adminBoost panel, give, XP
Config.AceManagecc_fishing.manageReset a character's catch, run the importer
Config.AceSurveycc_fishing.survey/ccfishing coords
Config.CommandccfishingThe admin command name
Config.Brand.nameHarbour MasterHub title when a location has no label
Config.Brand.accent#12324aChrome bar and primary buttons (#rrggbb; keep it dark enough for white text)

server/config.lua (secret)

KeyWhat it does
ServerConfig.Licenceprice, 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.ShopRulesAccepted accounts, maxQuantity per purchase
ServerConfig.StarterKitIts 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.BaitWhich tiers each bait reaches
ServerConfig.CastbiteSec, 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.LandCapenabled, perHour — rolling cap on fish landed per character (off by default)
ServerConfig.Junkenabled, chance, items[] — junk items a kept catch may bring up (off by default)
ServerConfig.LineBreak% a lost fight snaps each line
ServerConfig.MarketperiodSeconds, priceScale (retune every fish price with one number), maxPerFish, sellAllCap, account, coolerMustBeNear
ServerConfig.BoostsAllowed multipliers, longest boost
ServerConfig.SoakThe AFK maths: biteSec, slipChance, weightMult, maxSessionMin, maxCatches, restMin, leash, xpAndRebates
ServerConfig.DistancesThe anti-cheat's measurements (counter, pier spot, cooler cast / place / pickup / market, supply)
ServerConfig.Supply.buyersResource 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.CooldownsPer-event cooldowns (ms)
ServerConfig.Webhooksdefault, economy, catch, admin, security — or set cc_fishing_webhook_<channel> "..." (never setr)
ServerConfig.LogsWebhook 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

SettingResult
Cast.anywhere = true (default)Any spot the client sees as water. The catch goes to the pier catch store
Cast.anywhere = falseOnly 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

PresetWhat 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.