Skip to main content

Installation

Basic installation instructions for Wasabi Garage Creator (wasabi_garage).


danger

The resource must be named wasabi_garage to operate correctly.

info

Not an English server? Set language in config/shared/config.lua to your language and add the matching file in locales/ (copy locales/en.json). Missing keys and missing language files fall back to English.

Included languages: en

1. Install and start dependencies​

Ensure all dependencies are installed, current, and configured. Your framework's vehicle table (player_vehicles, owned_vehicles or vehicles) must already exist.

2. Remove your framework garage​

Remove qb-garages, qbx_garages or esx_garage from your server (or remove its ensure line). Wasabi Garage Creator takes its place with provides, so resources that depend on the framework garage still start.

warning

Do not run the framework garage next to Wasabi Garage Creator. Because both provide the same name, starting the framework garage stops wasabi_garage. If that happens, run ensure wasabi_garage again.

3. Review all three configuration files​

  • Shared: config/shared/config.lua (plus defaults.lua, interiors.lua and furniture.lua in the same folder)
  • Client: config/client/config.lua
  • Server: config/server/config.lua

At minimum, review adminGroups, interact, fees, the impound jobs (impound.jobs) and the private garage settings. See Configurations.

info

Setting debug = true in the shared configuration helps during initial set-up.

4. Start the resource​

Place wasabi_garage in your resources directory and start it after Ox Lib, OxMySQL, your framework, and your keys, fuel and target resources.

ensure ox_lib
ensure oxmysql
# ensure your framework, vehicle keys, fuel and target first
ensure wasabi_garage

The resource creates its database tables automatically on startup. Its database user therefore needs CREATE permission, and ALTER permission for the columns added to your framework vehicle table and for later updates. There is nothing to import.

  • wsb_garages: every garage made in the creator
  • wsb_garage_owners, wsb_garage_keys: private garage owners and key holders
  • wsb_garage_vehicle_meta: tags, favourites, deformation, mileage and street persistence
  • wsb_garage_impounds: impound records
  • wsb_garage_furniture: furniture placed in private garages

The owner, key and furniture tables reference your framework's character table (players.citizenid on Qbox and QBCore, users.identifier on ESX, characters.charId on OX). If setup fails, the server console prints database setup failed with the reason.

5. Set up your garages​

On the first start, while wsb_garages is empty, the garages in config/shared/defaults.lua are imported once: Legion Square Parking (with a 10-bay walk-in interior) and Davis Impound Lot.

Join with an administrator (the command ace, or a group in adminGroups) and run:

/garagecreator

Create the rest of your garages in game. See Garage Creator.

tip

Create at least one Impound garage. Police impounds, and cars that are destroyed or lost on the street, go to the first impound lot.

6. Restart and enjoy!​

Restart the server and enjoy.

note

The release package includes the built UI in ui/build/. Only if you build the UI from source, run npm ci and npm run build inside the ui folder.