cc_fishing — install
Five minutes on a running server. Nothing here needs code changes.
Five minutes on a running server. Nothing here needs code changes.
1. Requirements
- cc_lib 1.6.0 or newer (free, from your Code Cartel downloads) — the only code dependency.
- oxmysql — any current version.
- OneSync on (the FXServer default).
- A framework is optional: Qbox, QBCore, ESX Legacy, ox_core or none.
2. Files
- Download
cc_fishingfrom the Cfx.re portal (Keymaster → Granted assets) and unzip it. - Put the
cc_fishingfolder in yourresourcesfolder. Keep the folder name exactlycc_fishing(escrowed resources refuse to start under another name).
3. Items
Pick your inventory (see COMPATIBILITY.md for the full list):
| Inventory | Do this |
|---|---|
| ox_inventory | Paste install/items/ox_inventory.lua into ox_inventory/data/items.lua. Keep the server = { export = 'cc_fishing.useItem' } lines on the rods and the cooler |
| qb-inventory / ps / lj / qs (qb) | Paste install/items/qb-core.lua into qb-core/shared/items.lua |
| ESX | Run install/items/esx.sql once against your database |
Copy install/images/*.png into your inventory's image folder (ox_inventory/web/images/, qb-inventory/html/images/, ...).
If you rename the licence card or the cooler item, change Config.Items to match.
4. server.cfg
Paste install/convars.cfg (it is the same as below):
ensure cc_lib
ensure oxmysql
ensure cc_fishing
add_ace group.admin cc_fishing.admin allow # /ccfishing panel | boost | give | xp
add_ace group.admin cc_fishing.manage allow # /ccfishing reset | import
add_ace group.admin cc_fishing.survey allow # /ccfishing coords
setr cc_fishing_locale "en" # en | de | fr | es | pt
# Discord logs (secrets: `set`, never `setr`). Empty = console only.
# set cc_fishing_webhook_default "https://discord.com/api/webhooks/..."5. Start
Start the server. The tables create themselves (sql/install.sql, then migrations). The console prints:
[cc_fishing] v2.0.0 started (framework: ..., inventory: ..., database: ready, skill check: on)database: off or config: lines above it → TROUBLESHOOTING.md.
6. Place it on your map
The Harbour Master and the eight pier spots default to the Del Perro pier and are placeholders. In game, as an admin:
- Stand where the counter ped should be, face the way it should face, run
/ccfishing coords. - Paste the printed
vec4(...)intoConfig.Locations[1].coordsinconfig.lua. - Do the same on each pier spot for
Config.Pier.spots. restart cc_fishing.
Add more counters (a lake bait shop, a fish market in town) as more Config.Locations entries, each with the services it offers.
7. Tune
- Prices and payouts:
server/config.lua→ServerConfig.Market.priceScaleretunes the whole economy with one number. Full reference: CONFIG.md. - Switch features off in
Config.Features. - Change behaviour with hooks in
custom/server.lua(EXPORTS.md).
Updating
Replace the folder except config.lua, server/config.lua, custom/, presets/ and locales/ (yours). Read CHANGELOG.md for new config keys and copy them into your config files. Database migrations run by themselves on the next start.
Uninstall
Remove the ensure line. Your data stays in the cc_fishing_* tables until you drop them.