Swarm Fishing
A fishing job: clock in at the dock, cast in fishing zones, win the reeling minigame, then sell or keep the catch. Includes boat rental, treasure finds, upgrades, a species journal and 10 levels.
New to Swarm scripts? Read Getting started first. It covers Swarm Bridge, install order and the licence.
Requirements
Frameworks: Qbox, QBCore, ESX.
| Requirement | What it's for | Included |
|---|---|---|
swarm_bridge | Talks to your framework, inventory, target and so on. Included with every Swarm script. | Yes |
ox_lib | Shared library (callbacks, progress bars, text UI). | No |
oxmysql | Saves player stats and progress. | No |
| ox_target or qb-target | The dock and market NPCs are opened with your target eye. /fishing still opens the hub without one. | No |
| A supported inventory | Rods, bait and fish are real items. | No |
Install
- Copy the folders
swarm_fishing,swarm_bridgeinto your server'sresourcesfolder. Already haveswarm_bridgefrom another Swarm script? Keep just one copy, the newest. - Add them to
server.cfg, dependencies first:ensure ox_lib ensure oxmysql ensure ox_target ensure ox_inventory ensure swarm_bridge ensure swarm_fishing - Database: tables are created automatically the first time the script starts. If you prefer, import
install/swarm_fishing.sqlyourself first. Useinstall/swarm_fishing.sql, not the oldersql/install.sql. - Items: add the item definitions for your inventory from
install/items/:ox_inventory.items.luafor ox_inventory (any framework)qbcore.items.luafor QBCore or Qbox with qb-inventoryesx.items.sqlfor legacy ESX
Then copy
install/images/*.pnginto your inventory's image folder (ox_inventory/web/images/orqb-inventory/html/images/). Icons are namedSS_<item>.pngso they never overwrite another resource's images. Every item has an icon included.Items added (12)
fishingrodpro_fishingrodfishing_baitfish_trashfish_anchovyfish_sardinefish_mackerelfish_seabassfish_tunafish_swordfishfish_sharkfish_marlin - Licensed edition only: put your ServerSecret in
swarm_bridge/licence/private_config.lua. One secret unlocks every Swarm script you own. How to get it. The Source Code edition has no licence check, so skip this. - Start the server and check the console for errors.
Configuration
Open config.lua and check these before going live. Anything marked as a placeholder should be moved to a spot that suits your map.
| Setting | What it does |
|---|---|
Config.DockPed.coords | Where the Fishing Dock NPC stands (clock in and shop). Ships with placeholder coords, so move it to your dock. |
Config.MarketPed.coords | Where the fish market NPC stands. |
Config.BoatRental.spawn | Where rented boats spawn. It must be on water. Set Config.BoatRental.enabled = false to turn rental off. |
Config.Zones | Fishing zones: centre, radius, level and perk requirements. Zone centres must sit over water. |
Config.MoneyAccount | Account players are paid into. 'cash' by default. |
Config.Treasure | Chance of a bonus cash find while fishing (3%, $150 to $750 by default). |
Config.Locale | 'auto' follows the language set in Swarm Bridge. Set a code such as 'de' to force this script into another language. See Languages. |
Commands & permissions
| Command | Who | What it does |
|---|---|---|
/fishing | Everyone | Opens the fishing hub (clock in, shop, boat, upgrades, sell) from anywhere. |
/fishpos | Debug mode only | Copies your current position as a vec4. Only exists while Config.Debug = true. |
Debug helpers only exist while Config.Debug = true in config.lua. Leave debug off on a live server.
No ACE permissions are needed.
Keys
- E: cast while inside a fishing zone and on duty
Good to know
/fishingopens the hub from anywhere, so players can shop, sell and rent a boat without visiting the NPCs.- A boat deposit is lost if the player disconnects with the boat out.
- Shop and upgrade labels and prices shown in the menu live in
web/app.js. If you change prices inconfig.lua, change them there too.
Need help?
Ask in the Swarm Scripts Discord and we'll help you get set up.
Swarm Scripts
Nyxia Development