Installation Guide
This guide will walk you through installing zerio-garage v3 on your FiveM server.
Prerequisites
Before installing, ensure you have:
- A FiveM server running build 5181 or higher
- Either ESX or QB-Core framework installed and configured
- A MySQL database with oxmysql, ghmattimysql, or mysql-async
- PolyZone resource installed
Make sure to stop any existing garage resources (qb-garages, esx_vehicleshop garages, etc.) before installing zerio-garage to avoid conflicts.
Installation Steps
Download and Extract
Download zerio-garage from your purchase source and extract it to your server’s resources folder:
resources/
└── [zerio]/
└── zerio-garage/It’s recommended to place zerio-garage in a subfolder like [zerio] to keep
your resources organized.
Database Setup
Execute the SQL files in order:
- First, run
sql/main.sqlto create the database structure - Then, run
sql/data.sqlto populate with default garages and example data
The data.sql file includes ready-to-use public garages, impound lots, and
example job garages. You can modify or remove these after installation via the
in-game admin panel or directly in the database.
Using HeidiSQL or similar tool:
- Open your database management tool
- Select your server’s database
- Execute
main.sqlfirst - Execute
data.sqlsecond
Using command line:
mysql -u username -p database_name < sql/main.sql
mysql -u username -p database_name < sql/data.sqlConfigure the Resource
Before starting the resource, configure it for your server:
-
Open
configs/core.luaand set your locale:Config.Locale = "en" -- en, de, es, fr, etc. Config.BrowserLocale = "en-US" -- en-US, de-DE, es-ES, fr-FR, etc. -
Configure interaction type in
configs/interactions.lua:Config.Interaction.Type = "normal" -- or "target", "proximity", "custom" -
Review and adjust other settings in the
configs/folder as needed
Add to server.cfg
Add zerio-garage to your server.cfg:
ensure zerio-garageMake sure zerio-garage starts AFTER your framework (ESX/QB-Core) and BEFORE any resources that depend on it (housing scripts, phone scripts, etc.).
Example load order:
# Framework
ensure es_extended
# or
ensure qb-core
# Dependencies
ensure oxmysql
ensure PolyZone
# Zerio Garage
ensure zerio-garage
# Housing (if integrating)
ensure qs-housingStart Your Server
Start or restart your FiveM server. Check the console for successful initialization:
[zerio-garage] Detected framework: QB-Core
[zerio-garage] Loaded 15 garage configurations from database
[zerio-garage] Garage admin system initializedTest the Installation
- Join your server
- Go to any default garage location (e.g., Legion Square, coordinates:
211.879, -808.111, 30.832) - You should see a garage marker and be able to interact with it
- Test storing and retrieving a vehicle
Post-Installation
Add Your Own Garages
You have two options for adding custom garages:
Option 1: In-Game Admin Panel (Recommended)
- Use
/garageadmincommand - Click “Create New Garage”
- Use the placement editor to position everything visually
- Save
Option 2: Database
- Insert into
zerio_garage_configstable - Add spawn points to
zerio_garage_spawn_pointstable - Add putback points to
zerio_garage_putback_pointstable - Use
/reloadgaragescommand or restart the resource
Configure Features
Review the configuration files in the configs/ folder:
- Enable/disable vehicle sales, transfers, and sharing
- Configure police impound system
- Set up webhook logging
- Adjust vehicle behavior and damage settings
See the Configuration Guide for detailed information on all available settings.
Set Up Webhooks (Optional)
If you want Discord webhook logging:
- Create webhook(s) in your Discord server
- Add the webhook URLs to
configs/logging.lua - Enable the log types you want to track
Customize Localization (Optional)
To add or modify translations:
- Copy an existing locale file from
locales/(e.g.,en.lua) - Rename it to your language code (e.g.,
de.lua) - Translate all the strings
- Set
Config.Localeinconfigs/core.luato your language code
Framework-Specific Setup
ESX
No additional setup required. The resource will automatically detect and integrate with ESX.
Optional: If using an old ESX version, verify the vehicle table name in your database matches owned_vehicles. If different, you’ll need to adjust framework/server.lua.
QB-Core
No additional setup required. The resource will automatically detect and integrate with QB-Core.
QB-Phone Integration: See the FAQ section on QB-Phone for integration steps.
Troubleshooting Installation
”No supported framework detected” error
Cause: Neither ESX nor QB-Core is running on your server.
Solution:
- Ensure your framework is started before zerio-garage in
server.cfg - Check that your framework resource is named correctly (
es_extendedorqb-core)
Database connection errors
Cause: Database connection issues or SQL resource not running.
Solution:
- Ensure oxmysql (or your SQL resource) is started before zerio-garage
- Check your database credentials in your SQL resource configuration
- Verify the SQL files executed successfully without errors
UI not loading / blank screen
Cause: UI path is set to development mode in fxmanifest.lua.
Solution:
- Comment out
ui_page "http://localhost:5173" - Uncomment
ui_page 'html/index.html' - Restart the resource
Markers not showing
Cause: Markers might be disabled by default or PolyZone is missing.
Solution:
- Check that PolyZone is installed and started
- Verify markers are enabled in garage configuration (
marker_enabled = 1) - Check if you’re close enough to the garage location
Need Help?
If you’re still having issues, join our community server and create a support ticket.