Installation
Installation of SCode Garage & Valet
Supported Core
QBCore (
Config.Framework = "QBCore", or"OLDQBCore"for older QBCore versions)
Requirements
A fuel script with
GetFuel/SetFuelexports (LegacyFuel by default)qb-target (only if
Config.Target = true)
- Drag and drop
Put the
scode-garagefolder into yourresourcesfolder. Remove or stop your old garage script (for exampleqb-garages). - Update the database
Run
sqlQB.sqlon your database. It adds the column that stores each player's parking slots:SQLALTER TABLE players ADD availablegarage LONGTEXT - Use the oxmysql library
The server code uses the oxmysql API. In
fxmanifest.lua, change the MySQL line inserver_scriptto oxmysql:Luaserver_script { "main/sside.lua", '@oxmysql/lib/MySQL.lua', } - Set your fuel and key scripts
In
main/shared.lua, setConfig.FuelExportto the name of your fuel resource and checkConfig.VehicleKeySystemTrigger(seeConfiguration ). - Start the resource
Add it to your
server.cfgafterqb-core,oxmysql,PolyZoneand your fuel script:Codeensure 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