The mobile detailing van

A van fitted with the same washer, driven to the job instead of standing in one.

Using it

  1. Walk to the back of the van
  2. Open the rear doors — the rig lives in there, so the hose is unavailable until they are open
  3. Press E to take the gun
  4. The hose runs from the van exactly as it would from a pump
  5. Shut the doors again when the job is done

The doors

RequiredDoors lists the doors that must be open before the hose can be taken. While any listed door is shut, the pickup prompt is replaced by an "open the doors" prompt.

Door indices: 0 driver front, 1 passenger front, 2 driver rear, 3 passenger rear, 4 bonnet, 5 boot. A door torn off counts as open.

DoorOpenRatio is how far a door has to swing to count as open (0.0 shut, 1.0 fully open).

Listing a door the model does not have will block the hose permanently — that door can never read as open. Check the van before changing these.

Doors are animated and replicate, so other players see them swing. The script takes control of the van before swinging them, or the animation would never replicate. They can be shut again once nobody has a hose plugged in.

The hose follows the van

The hose's far end is pinned to the van entity, so it follows if the van is moved.

The van also runs the pump-engine loop while a gun is plugged into it, and satisfies the same proximity checks using PumpInfo.PumpRadius around the van.

The van itself is excluded from the "which vehicle am I washing" search, so you can always clean the car parked next to it.

Using a different van

Any van model works. Add an entry under DetailingVan.Models:

  • Model — the vehicle spawn name, not the resource folder name. The shipped van's resource is toxicdetailingvan but its model is toxicdetailvan (see its vehicles.meta)
  • AttachOffset — where the hose plugs into the van (X, Y, Z relative to the vehicle)
  • HelpTextOffset — where the prompt is drawn and measured from. Defaults to AttachOffset
  • SoundOffset — where the running engine sound emits from. Defaults to AttachOffset
  • RequiredDoors — this model's own door list. Defaults to the global setting

Van settings

  • Enabled — turn vans off entirely
  • DetectionRange — how close for the pickup prompt. Kept separate from the pump's 2.0 m because a van is a much bigger object
  • TargetRange — the same for target options. Measured in 3D from the coupling point, which sits a bit over a metre off the ground, so the usable reach along the floor is a little shorter than this number
  • HoseMaxLength — how far you can walk from the van before the hose snaps. Omit to use HoseInfo.RopeMaxLength
  • Mode — the business model for every van. A van is mobile so it cannot be matched to a spawn location
  • Price / Society / CleanReward / BreakFee — optional overrides of Config.Economy for vans
Can't find what you need? Ask on Discord — response in under 5 hours.