Skip to content

Garage System

Advanced garage script with vehicle previews, categories and animations.

Features

  • Vehicle preview before spawning
  • Category system (cars, motorcycles, boats, aircraft)
  • Custom garage locations
  • Impound system
  • Garage capacity limits
  • Transfer vehicles between garages

Installation

Follow the general installation guide, then:

cfg
ensure saboh_garage

Import saboh_garage.sql into your database.

Configuration

lua
Config = {}

Config.Framework = 'auto'
Config.Target = 'ox_target'

-- Garage locations
Config.Garages = {
    ['legion'] = {
        label = 'Legion Square Garage',
        coords = vector3(215.8, -810.2, 30.7),
        spawn = vector4(220.7, -803.1, 30.5, 70.0),
        type = 'car',
        capacity = 50
    },
    ['airport'] = {
        label = 'Airport Garage',
        coords = vector3(-796.4, -2024.8, 9.4),
        spawn = vector4(-793.2, -2020.5, 8.8, 315.0),
        type = 'car',
        capacity = 100
    }
}

-- Impound settings
Config.Impound = {
    enabled = true,
    price = 500,
    coords = vector3(409.3, -1622.7, 29.3)
}

-- Vehicle preview
Config.Preview = {
    enabled = true,
    camOffset = vector3(4.0, 4.0, 2.0)
}

Exports

lua
-- Open garage by name
exports['saboh_garage']:openGarage('legion')

-- Get player vehicles
exports['saboh_garage']:getVehicles()

-- Store vehicle
exports['saboh_garage']:storeVehicle(vehicle, garageName)

Events

lua
-- Client
RegisterNetEvent('saboh_garage:vehicleStored')
RegisterNetEvent('saboh_garage:vehicleSpawned')

-- Server
RegisterNetEvent('saboh_garage:onStore')
RegisterNetEvent('saboh_garage:onSpawn')

Support

Need help? Join our Discord.

Saboh Scripts - Premium FiveM Resources