SleepyCode
Home
AboutBlogSubscriptionDocs
Cart0
SleepyCode
Cart0
  1. Home
  2. /
  3. Guides
10 min read

Guide · June 5, 2026

SleepyCode Garages V2 - Full Installation & Configuration Guide

Complete setup guide for SleepyCode Garages V2 on FiveM (ESX, QBCore, QBox, Standalone) - dependencies, config, impound, insurance and admin panel.

Garages V2 is SleepyCode's flagship garage resource for FiveM. It supports ESX, QBCore, QBox, and Standalone frameworks with auto-detection, a React-based UI, impound system, insurance tiers, police tow, showroom previews, and a full admin panel - all with no manual SQL import required.

Requirements

  • FiveM server with OneSync enabled
  • oxmysql - database bridge
  • ox_lib - UI and utility library
  • PolyZone - zone detection
  • A supported framework: qbx_core, qb-core, or es_extended (or standalone with ACE permissions)

Installation

1. Place the resource

resources/
  [sleepycode]/
    sc_garages/
      fxmanifest.lua
      shared/
        ConfigClient.lua
        ConfigServer.lua
      client/
      server/
      locales/

2. server.cfg

cfg
ensure oxmysql
ensure PolyZone
ensure ox_lib
ensure es_extended   # or qb-core / qbx_core
ensure sc_garages

PolyZone must start before sc_garages. The resource auto-detects your framework - no manual setting required.

3. Database

No SQL import needed. On first startup Garages V2 automatically adds the required columns to your existing vehicles table:

  • insurance
  • last_used
  • impound_name
  • impounded_at
  • police_hold_until
  • impound_reason
  • co_owner
  • parking

A separate vehicle_history table is also created automatically.

The script reads your table via the database config (defaults match standard ESX/QB schemas):

lua
Config.Database.Tables.OwnedVehicles = "owned_vehicles"
Config.Database.Tables.VehicleHistory = "vehicle_history"
Config.Database.Tables.Users          = "users"
Config.Database.Tables.Jobs           = "jobs"

Column mapping defaults (change if your schema differs):

lua
Config.Database.Columns.Owner       = "owner"
Config.Database.Columns.Plate       = "plate"
Config.Database.Columns.VehicleData = "vehicle"
Config.Database.Columns.Stored      = "stored"

Key Configuration Options

Target system (ConfigClient.lua)

lua
Config.UseTarget            = true
Config.Target.Resource      = ""    -- leave empty for auto-detection
-- Supported: ox_target, qb-target, qtarget, interact

Set Config.UseTarget = false to use markers with key bindings instead.

Marker appearance (fallback when target is off)

lua
Config.Marker.Type          = 23
Config.Marker.Size          = vec3(1.2, 1.2, 0.5)
Config.Marker.Color         = {r=30, g=144, b=255, a=180}
Config.Marker.DrawDistance  = 8.0

Impound fees

lua
Config.ImpoundPrice.Account = "money"
Config.ImpoundPrice.Price   = 5000

Police tow system

lua
Config.PoliceTow.Enabled        = true
Config.PoliceTow.ImpoundName    = "police_impound"
Config.PoliceTow.MaxHoldHours   = 72
Config.PoliceTow.DefaultHold    = 24
Config.PoliceTow.RequiredJobs   = {"police", "sheriff"}
Config.PoliceTow.NotifyPlayer   = true

Commands:

/impoundpolice  - Police tow UI (police/sheriff jobs only)
/odholuj        - Mass-tow nearby vehicles (admin only)

Insurance tiers

Three configurable tiers (Basic, Standard, Premium). Each tier supports:

lua
{
  label           = "Basic",
  price           = 500,
  account         = "money",
  days            = 7,
  freeImpound     = false,
  impoundDiscount = 0.25,   -- 25% off impound fee
  freeRepair      = false,
  protectDelete   = false,
}

Toggle insurance features globally:

lua
Config.Insurance.Features.FreeRepair      = true
Config.Insurance.Features.ImpoundDiscount = true
Config.Insurance.Features.ProtectDelete   = true

Plate customisation

lua
Config.ChangePlate.Command         = "plate"
Config.ChangePlate.Price           = 5000
Config.ChangePlate.Account         = "money"
Config.ChangePlate.PlateLength.Min = 6
Config.ChangePlate.PlateLength.Max = 8
Config.ChangePlate.BlackListedWords = {}

Admin panel

lua
Config.AdminPanel.Command            = "garagesadmin"
Config.AdminPanel.Shortcut.Enabled   = true
Config.AdminPanel.Shortcut.HoldKey   = 21   -- SHIFT
Config.AdminPanel.Shortcut.PressKey  = 29   -- B

Open with /garagesadmin or SHIFT+B (configurable). From the admin panel you can create garages, impounds, and showrooms by placing spawn points at your current coordinates.

Server-side (ConfigServer.lua)

lua
ConfigServer.Webhook        = ""   -- Discord webhook URL
ConfigServer.SteamAPIKey    = ""   -- Steam API key for avatar display

ConfigServer.Security.EnableAntiExploitBan = true
ConfigServer.Security.BanReasonPrefix      = "[sc_garages anti-exploit] "

Creating Garages In-Game

After installation, use /garagesadmin to open the admin panel. You can:

  • Create garage zones (vehicle, aircraft, boat)
  • Create impound locations
  • Create showroom previews
  • Set spawn and entry points by walking to the desired location

No JSON editing required - everything is managed through the UI.

Troubleshooting

Garage zones do not work - Ensure PolyZone starts before sc_garages. Enable Config.Debug = true and check the server console.

Vehicles do not spawn - Clear the spawn point of obstacles. Blocked spawn points are automatically skipped.

Target system not working - Start your target resource before sc_garages. Leave Config.Target.Resource = "" for auto-detection.

Admin panel won't open - Check your ESX admin group matches Bridge.Config.ESX.AdminGroups (defaults: admin, superadmin, owner).

Database errors - Confirm oxmysql is connected. Check that Config.Database.Tables.OwnedVehicles matches your actual table name.

Webhooks not sending - Validate the Discord webhook URL in ConfigServer.Webhook. Check the server console for HTTP errors.

Need help? Join discord.gg/qCDt8u7Efg - include your framework version and server console output for fastest support.

The script

Don't have Garages V2 yet?

See the product page

On this page

  1. 01Requirements
  2. 02Installation
  3. 03Key Configuration Options
  4. 04Creating Garages In-Game
  5. 05Troubleshooting
Next

More guides

  • Best FiveM ESX Scripts in 2026 - SleepyCode Store OverviewOverview of the best FiveM ESX scripts on SleepyCode in 2026: Garages V2, Vehicle Shop V1, Selldrugs, Bus Job and more - all under 0.03ms resmon.Read →
  • How to Install SleepyCode Selldrugs on FiveM ESXInstallation guide for SC Selldrugs - ESX drug-selling script for FiveM. Dependencies, server.cfg, config.lua options and troubleshooting tips.Read →
Ready when you are

Put your server on something that holds up

150+ servers run our resources - ESX, QBCore and standalone. Once the payment clears, the package is waiting in Keymaster.

Browse the catalogueAsk on Discord ↗
  • Delivered instantly
  • Support with no expiry
  • 100+ reviews
  • Payment via Tebex

SleepyCode

FiveM Scripts

Checkout is run by Tebex Limited - they handle payment, invoicing and refunds. © 2026

Community

  • Discord
  • YouTube
  • X (Twitter)

Navigation

  • Home
  • All Scripts
  • ESX Scripts
  • QBCore Scripts
  • Free Scripts
  • About
  • Blog
  • Documentation
  • Support

Legal

  • Privacy Policy
  • Tebex Privacy Policy
  • Terms of Service
  • Impressum

© 2026 SleepyCode. Not affiliated with Rockstar Games or Take-Two Interactive.

Powered byTebex