Pumps and business models

Adding pumps

Add locations under WasherPumpSpawnLocations. Each entry takes:

  • Position / Rotation — where the pump stands
  • Mode"selfservice", "business" or "job". Defaults to Config.DefaultPumpMode
  • Spawntrue spawns the prop here. false means the prop already exists in your ymap and this entry only assigns its mode. Omitted defaults to true
  • Price / Society / CleanReward — optional per-pump overrides of Config.Economy

We recommend using a ymap to place the props. The script auto-detects the WasherPumpModel even if it was not spawned by the script, and adopts an existing prop rather than spawning a duplicate on top of it.

Any pump found in the world that is not listed falls back to DefaultPumpMode, so a ymap pump always has defined behaviour.

The three business models

selfservice — charges the player PumpUsePrice on pickup and the money is removed, like a coin-op wash.

job — for on-duty washers only, and pays them Economy.CleanReward per car they finish. Set that to 0 to take the server out of it entirely and bill your own way.

business — charges the player on pickup and banks it into the car-wash society, so the owner profits.

Who pays what

  • Gun pickupselfservice: price removed from the player. business: price removed and banked to the society. job: free, on-duty washers only
  • Vehicle cleanedjob: CleanReward paid to the washer. The other two: nothing
  • Hose brokenselfservice: PumpBreakFee removed. business: removed and banked to the society. job: nothing, the hose still breaks

Pay once per visit

The player pays on pickup and can set the gun aside to scrub and pick it back up to rinse without paying again, until they walk out of PumpRadius.

Money is server-side

All money is handled server-side and every amount is re-resolved there — the client only ever says which washer it is working from, never how much anything costs.

A spoofed position can at worst map to a different configured pump; it can never inject an arbitrary price, reward or society.

Job payouts are validated server-side against the player's real job and a per-player cooldown (RewardCooldown), so the reward event cannot be spammed.

Standalone servers

Standalone has no wallet, so no money changes hands in any mode. The modes then only control who may use a washer.

Can't find what you need? Ask on Discord — response in under 5 hours.