Swarm Plumber
A plumber job: take a house call into a private instance of an interior shell and fix toilets, pipes and sinks with skillchecks, for pay plus a completion bonus.
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 | Fixtures and the exit door are target zones, and the depot clerk is a target NPC. | No |
| K4MB1-StarterShells (third-party, not included) | Provides the interior shells used for house calls. Without it, no interior spawns. | No |
| OneSync | Each call runs in its own routing bucket. | No |
Install
- Copy the folders
swarm_plumber,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 K4MB1-StarterShells ensure swarm_bridge ensure swarm_plumber - Database: tables are created automatically the first time the script starts. If you prefer, import
install/swarm_plumber.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 (1)
plumbing_kitOnly needed if you set
Config.RequireTools = true. - 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.DepotPed.coords | Where the Plumbing Co. clerk stands. Placeholder. |
Config.Shells | The 11 shells with door, fixture and stand positions. Only valid if those exact K4MB1 shell models are streamed. |
Config.ShellOrigin | Leave at vec3(0,0,0). Door and fixture coords are absolute. |
Config.BucketBase | Routing bucket base (6100). Each call uses BucketBase + serverId, so avoid ranges other scripts use. |
Config.RequireTools | false by default. true requires Config.ToolItem ('plumbing_kit'). |
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 |
|---|---|---|
/plumber | Everyone | Opens the hub (clock in, take a call, upgrades) from anywhere. |
/plumbpos | Debug mode only | Prints and copies your 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
- Target the fixtures, exit door and depot clerk. No extra keys.
Good to know
- The exit door appears once every fixture in the house is fixed.
- Leaving a call returns the player to where they took it, so a call taken with
/plumberaway from the depot returns them to that spot.
Need help?
Ask in the Swarm Scripts Discord and we'll help you get set up.
Swarm Scripts
Nyxia Development