Skip to main content

Quick References

Commands, keys and common integration patterns for Wasabi Garage Creator (wasabi_garage).


Commands​

Players​

  • /garagemenu: owner menu for your private garages (keys, public showcase, waypoint, sell). The name is set by private.command.
  • /garagedecorate: decoration editor, inside your own private garage's interior. The name is set by decoration.command.

Police​

  • /impound: impound form for the nearest vehicle (lot, hold time, fine, early release, note). Jobs in impound.jobs, on duty on QBCore and Qbox. When qb-policejob, qbx_policejob or qbx_police is installed, the command is /impoundvehicle instead (impound.commandFallback).
  • /mdv: impound the nearest vehicle straight to the default lot with impound.defaultFee and no hold time (same jobs, or admin).

With interact = 'ox_target' or 'qb-target', the impound form is also an Impound vehicle target option on vehicles.

Admin​

  • /garagecreator: the Garage Creator.
  • /givecar <id> <model> [plate] [garage]: give a vehicle to a player, stored in a garage (default: the first public car garage).
  • /addcar: add the vehicle you are sitting in to your own garage list.
  • /tptoplate <plate>: teleport to a vehicle by plate.
  • /garagerepair [plate]: repair a garage vehicle and clear its saved damage (your current vehicle when no plate is given).
  • /mdvall: impound every unoccupied garage vehicle.

/givecar, /tptoplate, /garagerepair and /mdvall are restricted to group.admin. /addcar is checked against adminGroups and the command ace on the server.

Server console​

garage_import_defaults

Imports the garages in config/shared/defaults.lua again.

Keys​

KeyWhereAction
EMenu pointOpen the garage, or the impound lot.
GMenu pointWalk into the garage interior, or visit a showcased garage.
HMenu pointRequest to join a player inside (shown when someone is inside).
EDriving in a parking zonePark the vehicle.
EInside an interiorDrive out (in a car) or leave (at the exit marker).
Arrow keysShowroomPrevious / next car.
F9ShowroomInspect mode: orbit with the mouse, zoom with the wheel, F9 to return.
PShowroomMusic on or off.
Enter (hold)ShowroomTake the car out.
EscShowroomClose.
SPACETake-out cutsceneSkip.

E, G and H are set in keys (shared config).

Showroom actions​

Bring sheet in the showroom

  • Favourite: pinned to the front of the list, with a favourites filter.
  • Tag: a preset or custom tag with a colour. The tag chips filter the list.
  • Send: move a stored car to another garage of the same type you can use (fees.send).
  • Transfer: give the car to a player within transferRange (fees.transfer, charged to the sender). Impounded cars cannot be transferred. When the car is out, its keys move to the new owner.
  • Bring: recover a car that is out on the street (nobody inside) or parked in another garage (fees.bring).
  • Inspect: free orbit camera (F9).

Impounded cars show the impound ticket instead. At the impound lot, the owner can pay the fine to release the car, early if the officer allowed it.

Job garages​

Give the garage a Script key in the creator (for example police), then open it from your job script. The showroom only lists the player's own cars (and cars they hold keys for); it does not create job vehicles.

exports['wasabi_garage']:OpenGarage({ id = 'police', coords = vector4(441.0, -1013.0, 28.6, 90.0) })

coords is optional. When given, the car spawns there (within 60 m of where the menu was opened) instead of at the garage's spawn points.

Wasabi Police V2​

wasabi_police_v2 includes a garage bridge for Wasabi Garage Creator. Its station garage points then open the Wasabi showroom instead of the police job's own garage menu.

How it activates

  • wasabi_garage must be started (the bridge checks GetResourceState('wasabi_garage')). Start it before wasabi_police_v2.
  • In wasabi_police_v2/config/shared/config.lua, set garages.type to 'wasabi'. The default 'internal' keeps the police job's own garage, and the bridge stays off.
garages = {
enabled = true,
requireDuty = true,
type = 'wasabi', -- default 'internal'
wasabiId = 'police', -- Script key (or garage id) of the Wasabi garage to open
-- ...
},

What it does

  • Car, helicopter and boat garage points at police stations call exports['wasabi_garage']:OpenGarage({ id = wasabiId, coords = spawnCoords }), so the car spawns at that station's spawn point.
  • Every station garage point opens the same Wasabi garage (wasabiId), whatever its kind.
  • All vehicle storage, keys, fuel and damage are handled by Wasabi Garage Creator. The bridge adds no server logic.

Set up

  1. Create a garage in /garagecreator and set its Script key to police (or the value of wasabiId).
  2. Lock it to your police jobs under Access control if only officers should open it.
  3. Set garages.type = 'wasabi' in the police config and restart both resources.
note

The showroom only lists vehicles the officer owns (or holds keys for). The police job's internal vehicle catalog (garages.options, ranks, plate format) is not used in this mode. Give officers their vehicles with GiveVehicle or /givecar.

Phones and other garage lists​

-- server
local garages = exports['wasabi_garage']:GetGarages()
for _, g in ipairs(garages) do
print(g.id, g.label, g.type, g.access, g.coords.menuCoords)
end

Give a vehicle from a shop (server)​

local plate, garageId = exports['wasabi_garage']:GiveVehicle(source, 'sultan', nil, 1)
if not plate then
print('Could not give vehicle: ' .. tostring(garageId))
end

Impound from a police script (server)​

local ok, err = exports['wasabi_garage']:ImpoundVehicle('ABC123', {
minutes = 60,
fee = 1500,
payToRelease = true,
note = 'Illegally parked',
officer = source,
})

Housing​

-- server: create a house garage owned by a character
local garageId = exports['wasabi_garage']:CreateHouseGarage({
label = 'Mirror Park House',
menu = vector4(1300.0, -570.0, 71.2, 160.0),
spawns = { vector4(1295.0, -566.0, 71.0, 340.0) },
interior = 'garage_2',
owner = citizenid,
})

-- when the house is sold or removed
exports['wasabi_garage']:SetGarageOwner(garageId, newCitizenid)
exports['wasabi_garage']:RemoveHouseGarage(garageId)

See Exports for every parameter.