SCode StudiosSCodeDocs
Tebex Store

Installation

Installation of SCode Garage & Valet

Supported Core

  • QBCore (Config.Framework = "QBCore", or "OLDQBCore" for older QBCore versions)

Requirements

  • oxmysql

  • PolyZone

  • A fuel script with GetFuel / SetFuel exports (LegacyFuel by default)

  • qb-target (only if Config.Target = true)

  1. Drag and drop

    Put the scode-garage folder into your resources folder. Remove or stop your old garage script (for example qb-garages).

  2. Update the database

    Run sqlQB.sql on your database. It adds the column that stores each player's parking slots:

    SQL
    ALTER TABLE players ADD availablegarage LONGTEXT
  3. Use the oxmysql library

    The server code uses the oxmysql API. In fxmanifest.lua, change the MySQL line in server_script to oxmysql:

    Lua
    server_script {
        "main/sside.lua",
        '@oxmysql/lib/MySQL.lua',
    }
  4. Set your fuel and key scripts

    In main/shared.lua, set Config.FuelExport to the name of your fuel resource and check Config.VehicleKeySystemTrigger (see Configuration).

  5. Start the resource

    Add it to your server.cfg after qb-core, oxmysql, PolyZone and your fuel script:

    Code
    ensure scode-garage

Vehicles are read from QBCore's player_vehicles table (garage, state, mods, fuel columns), so existing vehicles keep working. A vehicle can only be parked in a garage by its owner.

Last updated: December 6, 2026