Skip to Content
Mavix

Garage System

Where players park their vehicles, take them out again and collect towed ones from the depot.

What it is

Players park their own vehicles at a garage and take them out again later. Vehicles that were towed or lost end up at a depot, where the owner pays a small fee to get them back.

The garage showroom: your vehicles along the bottom, the picked one's fuel, engine and body on the right.
The garage showroom: your vehicles along the bottom, the picked one's fuel, engine and body on the right.

How it works

There are four kinds of garage:

KindWho can use it
Public garageEveryone. Each player only sees their own vehicles.
House garageThe house owner and anyone with a key to the house. See Property System.
Job garageOnly the jobs listed in the config (for example police or ambulance).
DepotEveryone. Lists your towed vehicles with the release fee.

There are car garages, boathouses and aircraft hangars, and three depots: Hayes Autos (cars), Airport Impound Hangar (aircraft) and Boat Impound Pier (boats). Garages show on the map with a parking icon.

Park

Drive onto the garage marker and press E while sitting in the vehicle. Only vehicles you own can be parked, and only the same car that was taken out under that plate: a different car wearing your plate is refused. Fuel, engine and body damage are saved.

Take it out

Stand on the marker on foot and press E. The showroom opens: the camera glides to the parking bay and shows the vehicle you pick. Pick a vehicle with ← → or by clicking it; the tabs filter All, Stored and Out. The camera is locked to a fixed height and distance; drag the mouse or hold A / D to turn around the car. Press Enter (or Take out) and you are put in the driver seat.

Find a vehicle that is out

If a vehicle is already out in the world, the menu shows Out and offers Track on GPS, which puts a waypoint on your map.

Collect from the depot

A vehicle that was destroyed, despawned or impounded goes to the depot. Go to the depot for that kind of vehicle, press E, pick it and pay $400. Cash is used first, then the bank. A vehicle marked Seized cannot be collected; only the police can release it.

A depot: one towed car to collect and one seized by the police.
A depot: one towed car to collect and one seized by the police.

A vehicle can only be taken out of the garage where it was parked; the menu shows where it is. On a server restart, vehicles that were left out go back to their garage, except ones the police impounded.

Keys & commands

Key / commandWhat it doesWho
E on a garage markerPark (in a vehicle) or open the menu (on foot)Everyone
← →Pick a vehicle in the menuEveryone
A D or mouse dragTurn the camera around the vehicleEveryone
EnterTake out / pay and take out / track on GPSEveryone
Esc / BackspaceClose the menuEveryone
/impoundNext to an empty vehicle: sends it to the depot after a 10 second barOn-duty police only

Customise in game

There is no in-game garage creator. New garages are added in the config by your team.

Config options

File: [scripts]/[garage]/mvx_garages/config.lua

OptionWhat it changesExample
Config.DepotPriceFee to get a vehicle back from the depot400
Config.SharedGaragestrue lets players take a vehicle out of any garagefalse
Config.ClassSystemtrue stops boats going into car garages and so onfalse
Config.AutoRespawnPut vehicles that were out back in their garage on restarttrue
Config.WarpPut the player in the driver seat on take-outtrue
Config.Impounding.AllowedJobsJobs that may use /impound{ 'police' }
Config.Impounding.DurationHow long /impound takes (milliseconds)10000
Config.Preview.EnabledThe showroom camera on or offtrue
Config.Preview.LockZoom / LockPitchKeep the camera at a fixed distance and heighttrue
Config.Preview.OrbitSpeedHow fast the camera slowly circles the car (0 = off)6.0
Config.DistanceUnitMiles or kilometres in the menu'mi'
Config.HouseGarages.EnabledHouse garages on or offtrue
Config.GaragesThe list of garages: name, marker, parking bays, map icon, type, allowed jobs

Admin Quick Test

Setup

  1. Find your server id (it is shown on the scoreboard). Give yourself an owned car: /givecar <your id> sultan. Expected: "Vehicle ... has been parked in ...'s garage". A car made with /car is not owned and cannot be parked.
  2. Give yourself money for the depot: /giveaccountmoney me money 1000.

Take out and park

  1. Teleport to the Legion Square garage: /tp 215.45 -809.80 30.73 (or admin tablet HOME → World → Teleport with 215.45, -809.80, 30.73).
  2. Stand on the marker on foot and press E. Expected: the showroom opens, the camera glides to a parking bay and shows the Sultan.
  3. Drag the mouse or hold A / D. Expected: the camera turns around the car; the mouse wheel does not zoom and the camera height stays the same.
  4. Press Enter. Expected: "Bringing it round", then you sit in the Sultan in the bay.
  5. Drive back onto the marker and press E. Expected: "Vehicle Stored" and the car disappears.
  6. Take the car out again and drive a little away. Get out, walk back and open the menu on foot. Expected: the Sultan shows as Out with Track on GPS; pressing it puts a waypoint on the car.

Impound and depot

  1. /setjob me police 0. Stand within 5 m of the empty car and type /impound. Expected: a 10 second bar, then "Vehicle impounded" and the car is gone.
  2. Teleport to the Hayes Autos depot: /tp 483.75 -1312.29 29.21. Press E. Expected: the Sultan is listed with a $400 fee.
  3. Pay and take it out. Expected: $400 less cash and the car appears at 493.28, -1329.28, 29.03 with you inside.

Boats and aircraft use their own depots: Boat Impound Pier at -858.04, -1470.69, 1.63 and Airport Impound Hangar at -1299.52, -3407.56, 13.93.

The end

  1. Park the car in any garage and clean up with /setjob me unemployed 0. Result: the car is stored and you paid $400 once.

If it doesn't work

Parking is refused: the car is not yours, or it is not the car that was taken out under that plate. /impound is refused: you are not on the police job, someone sits in the car, or you are more than 5 m away. The car is not in the menu: it was parked in another garage (garages are not shared), or it came from /car instead of /givecar.

On this page