← All docsCivilian jobs

Swarm Window Washer

A window washer job: pick a building, ride a platform up its face and clean each window with a click-to-scrub minigame for per-window pay. Includes upgrades and 10 levels.

QboxQBCoreESXstandaloneResource: swarm_windowwash

New to Swarm scripts? Read Getting started first. It covers Swarm Bridge, install order and the licence.

Requirements

Frameworks: Qbox, QBCore, ESX, standalone.

RequirementWhat it's forIncluded
swarm_bridgeTalks to your framework, inventory, target and so on. Included with every Swarm script.Yes
ox_libShared library (callbacks, progress bars, text UI).No
oxmysqlSaves player stats and progress.No
ox_target or qb-targetUsed to talk to the depot NPC. /windowwash works without one.No

Install

  1. Copy the folders swarm_windowwash, swarm_bridge into your server's resources folder. Already have swarm_bridge from another Swarm script? Keep just one copy, the newest.
  2. Add them to server.cfg, dependencies first:
    ensure ox_lib
    ensure oxmysql
    ensure ox_target
    ensure swarm_bridge
    ensure swarm_windowwash
  3. Database: tables are created automatically the first time the script starts. If you prefer, import install/swarm_windowwash.sql yourself first.
  4. 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.
  5. 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.

SettingWhat it does
Config.DepotPed.coordsWhere the depot clerk stands (vec4). Placeholder near Maze Bank.
Config.BuildingsEach building's base (vec4 at street level, facing the wall), number of floors and floor height.
Config.Platform.propThe platform prop, with a fallback. Swap in a gondola prop if you have one.
Config.PayPay per window, height bonus, completion bonus, tip chance and tip range.
Config.MoneyAccountAccount 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

CommandWhoWhat it does
/windowwashEveryoneOpens the depot hub (clock in, contracts, upgrades) from anywhere.
/washposDebug mode onlyPrints 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

  • W: platform up
  • S: platform down
  • E: wash the window at this height
  • X: step off the platform
  • Esc: close the menu

Good to know

  • Starting a contract places the player on the building's platform.
  • Stepping off with X ends the ride. To take a new contract, clock out and back in.

Need help?

Ask in the Swarm Scripts Discord and we'll help you get set up.