Garages V2
Installation
Install Garages V2, start dependencies, and review the automatic database setup.
On this page7 sections
Requirements
- FiveM server with OneSync enabled
- MySQL database through
oxmysql ox_libPolyZone- One of these setups:
- ESX
- QBCore
- QBox
- standalone
Steps
- Purchase the resource from SleepyCode Store.
- Download it from Keymaster (opens in a new tab).
- Place it in your
resourcesfolder. - Add the resource to
server.cfg. - Start it after your framework and dependencies.
- Configure
shared/ConfigClient.luaandshared/ConfigServer.lua. - Restart the server.
- Use
/garagesadminin-game to create garages, impounds, and showrooms.
ensure oxmysqlensure PolyZoneensure sc_garagesResource order
Start sc_garages after:
- your framework
oxmysqlPolyZone
Database
Garages V2 creates and migrates the required columns on startup.
It adds these columns to the owned vehicles table:
insurancelast_usedimpound_nameimpounded_atpolice_hold_untilimpound_reason
The table name is configurable through Config.Database.
Garages V2 also uses a separate vehicle_history table.
No manual SQL import is required.
File structure
sc_garages/ shared/ ConfigClient.lua - All gameplay configuration ConfigServer.lua - Webhooks, logging, and security client/ main.lua - Core client logic functions.lua - Utility functions and hooks nui.lua - NUI callback handlers commands.lua - Client commands exports.lua - Client exports server/ main.lua - Core server logic functions.lua - Database operations exports.lua - Server exports framework/ shared/ - Framework detection and bridge config client/ - Client bridges server/ - Server bridges modules/ target.lua - Target system integration carkeys.lua - Car keys integration locales/ - Translation files locations/ - Garage, impound, and showroom JSON files web/ - React NUI frontend init.lua - Locale loader fxmanifest.lua - Resource manifestQuick start
- Install and start the resource.
- Join the server with admin access.
- Run
/garagesadmin. - Open Create Garage.
- Grab your current coordinates.
- Add spawn points and save the garage.
- Repeat for impounds and showrooms.
Notes
- Database changes are applied automatically on first start.
- Locale fallback uses English when a key is missing.
- Target and car keys resources can auto-detect at startup.