Swarm Scuba
A scuba salvage job: buy dive gear, rent a boat, dive in offshore zones on an oxygen meter, salvage loot from the seabed and sell it. Includes upgrades 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, standalone.
| 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 shop and buyer NPCs are target-only. /scuba still opens the hub without one. | No |
| A supported inventory | Tanks and loot are real items. | No |
Install
- Copy the folders
swarm_scuba,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_scuba - Database: tables are created automatically the first time the script starts. If you prefer, import
install/swarm_scuba.sqlyourself first. - 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 (8)
scuba_tankair_tankscrap_metalcopper_scrapold_relicpearlsunken_goldlost_artifactscrap_metalandcopper_scrapmay already exist on your server. Skip any you already have. - 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.ShopPed.coords | Where the dive shop NPC stands (vec4). Placeholder on Del Perro pier. |
Config.MarketPed.coords | Where the salvage buyer stands (vec4). |
Config.BoatRental | spawn (vec4, on water), price, enabled and returnRadius for boat rental. |
Config.Zones | Dive zones: coords, radius, minimum level and loot weights. They must be over water. |
Config.SalvagePoints | Optional seabed spots for decorative wreck props. Empty by default. |
Config.Oxygen.tankProp / Config.WreckProp | Stand-in props for the back tank and seabed wreck. Swap them if you have better ones. |
Config.Loot | Loot item names, sell prices and XP. |
Config.MoneyAccount | Account players are paid into. 'cash' 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 |
|---|---|---|
/scuba | Everyone | Opens the dive hub (shop, boat rental, upgrades, sell, clock in) from anywhere. |
/scubaspare | Everyone | Uses one air_tank to refill oxygen while diving. Bound to G. |
/scubapos | Debug mode only | Prints and copies your position as a vec3. 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
- G: use spare air
- E: salvage while underwater in a dive zone
- Esc: close the menu
Good to know
/scubaposgives a vec3. The NPC and boat spawn settings need a vec4, so add the heading yourself.- The boat deposit is refunded when the boat is returned near its spawn point.
Need help?
Ask in the Swarm Scripts Discord and we'll help you get set up.
Swarm Scripts
Nyxia Development