MG Garages

MG Garages MG Garages
  • MG Garages
  • MG Garages
  • MG Garages

This item is free.

Add to Basket

MG Garages is a full-featured vehicle garage system for FiveM built from 

scratch — custom analog gauge UI, complete damage and customization 

persistence, and a smart depot system, all working natively on top of your 

existing framework tables with no extra database setup required.

Compatible with ESX and QBCore out of the box.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

💬 SUPPORT & COMMUNITY

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Discord → https://discord.gg/RbqEvEFrgK

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✦ WHAT'S INCLUDED

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

- Full source code (Lua, JS, CSS, HTML — ~1,800 lines)

- English and Spanish locale files

- Ready-to-use example garage configurations

- Detailed configuration file with inline comments

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✦ FEATURES

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

CUSTOM ANALOG GAUGE UI

Each stored vehicle is displayed as a claim-ticket style card with three 

real analog gauges showing fuel level, engine condition and body condition. 

Colors update dynamically: green, yellow or red depending on the vehicle's 

state. Generated in pure SVG with no external UI libraries or frameworks 

required.

FULL DAMAGE & CUSTOMIZATION PERSISTENCE

Paint, wheels, window tint, neon lights, extras, broken doors, smashed 

windows, burst tyres, fuel level, engine health, body health and dirt level 

are all stored and restored. The vehicle comes out of the garage exactly as 

it went in.

THREE GARAGE TYPES

Public garages open to all players, job/gang restricted garages verified 

server-side, and depot garages for recovering lost or destroyed vehicles. 

Each garage is independently configurable.

SMART DEPOT SYSTEM

The depot performs real-time cross-client checks before marking a vehicle 

as lost — asking every connected player whether the vehicle exists in their 

world. Clients also proactively report exploded, sunken or engine-destroyed 

vehicles to the server without waiting for the player to visit the depot. 

If a spawn fails for any reason, the vehicle state is automatically reverted 

in the database.

100% SERVER-SIDE VALIDATION

Vehicle ownership, allowed category and garage permissions are always 

re-checked on the server. The client is never trusted to make these 

decisions.

NATIVE FRAMEWORK INTEGRATION

Works directly on your framework's existing vehicle tables (owned_vehicles 

for ESX, player_vehicles for QBCore). No custom database tables, no 

migrations, no extra setup.

MULTIPLE SPAWN POINTS PER GARAGE

Define as many exit points as you need per garage. If one is blocked by 

another vehicle, the next available point is used automatically.

CONFIGURABLE INTERACTION & NOTIFICATIONS

Choose your interaction text style (native GTA help text, ESX/QBCore 

TextUI, or ox_lib) and your notification system (native, ESX, or QBCore) 

independently of each other.

CONFIGURABLE PRICING

Set a price to take a vehicle out of a regular garage, a separate price for 

the depot, or make either one free. Money is only charged after all 

server-side checks pass.

PASSENGER EXIT ANIMATION

Optionally makes all passengers play their exit animation before the 

vehicle is stored, with a configurable safety timeout.

MULTILINGUAL

English and Spanish included. NUI texts are sent from Lua to the interface 

— nothing is hardcoded in JS. Edit the locale files and the entire 

interface updates automatically.

CONFIGURABLE BLIPS

Sprite, color and scale configurable per garage. Any blip can be hidden 

individually.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✦ REQUIREMENTS

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

- oxmysql (mandatory)

- ESX or QBCore

- ox_lib (optional — only needed if you choose ox_lib as your TextUI style)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✦ INSTALLATION

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

1. Extract the resource into your FiveM resources directory

2. Ensure oxmysql is installed and starts before this resource

3. Open config/config.lua and set your framework, TextUI style and garages

4. (Optional) Edit texts in config/locales/en.lua or es.lua

5. Add "ensure mg_garages" to server.cfg after oxmysql and your framework

6. Restart your server

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✦ TECHNICAL DETAILS

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Code accessible    → No

Subscription       → No, its FREE

Lines of code      → ~1,800 (Lua, JS, CSS, HTML)

Framework          → ESX / QBCore

Inventory          → Not required, no items used

Interaction        → Marker + [E] — native / framework / ox_lib

Database           → oxmysql (framework native tables only)

Support            → Via Discord