AW Garage
Installation
#Requirements
| Required | Notes | |
|---|---|---|
| Server | FiveM build 7290+ with OneSync | server-side vehicle creation needs OneSync |
| ox_lib | yes | callbacks, points, dialogs, locale |
| oxmysql | yes | database |
| Framework | qbx_core or qb-core or es_extended | auto-detected |
| Target | ox_target / qb-target | optional, marker + key fallback |
| Inventory | ox_inventory / qb-inventory | optional, used for plate change |
| Fuel | ox_fuel / LegacyFuel / cdn-fuel / ps-fuel / lc_fuel | optional, native fuel fallback |
| Keys | qbx_vehiclekeys / qb-vehiclekeys / wasabi_carlock / MrNewbVehicleKeys / qs-vehiclekeys / Renewed-Vehiclekeys | optional |
| Society | Renewed-Banking / qb-banking / qb-management / okokBanking / esx_addonaccount | optional, job billing |
#Install
- Put
aw_garagein your resources folder. - Import
sql/install.sql(the script also creates its own tables on first start, the file is there for people who prefer to run SQL themselves). Nothing in your framework vehicle table is dropped or renamed. server.cfg, after ox_lib, oxmysql, your framework, inventory, target, fuel and keys resources:server.cfgensure aw_garage- Remove or stop any other garage resource (qb-garages, esx_garage, cd_garage, ...). Two garage scripts fighting over the same vehicles ends badly.
- Give admins the ace:
server.cfg
add_ace group.admin aw_garage.admin allow - Start the server once. The console prints the detected framework / target / inventory / fuel / keys and how many garages and vehicles were loaded.
#Framework columns
aw_garage reads and updates the usual columns and adds the missing ones automatically (checked through information_schema, nothing is altered when the column already exists):
- QB / Qbox
player_vehicles:garage,state,fuel,engine,body,depotprice,drivingdistance,mods - ESX
owned_vehicles:stored,parking,pound,type,job
The garage keeps its own state in garage_vehicle_meta (garaged / out / impounded / depot / outside, position, category, mileage, display name, favorite) and mirrors state / garage back into the framework table so other scripts keep working.