Advanced Garages
Migrating from v1 to v2
This is the legacy guide for upgrading v1 to v2. For v3 installations, see Migrating from v3 to v4.
Back up your installation
Stop jg-advancedgarages and back up the resource and your database. The SQL below clears old vehicle damage data.
Update the database
Run this SQL in your server's database to update job and gang vehicle ownership:
UPDATE `player_vehicles` SET `citizenid` = `license` WHERE `license` NOT LIKE 'license:%';
UPDATE `player_vehicles` SET `damage` = '';Run this SQL in your server's database to add the required vehicle columns:
ALTER TABLE `owned_vehicles` ADD COLUMN IF NOT EXISTS `gang_vehicle` TINYINT(1) DEFAULT '0';
ALTER TABLE `owned_vehicles` ADD COLUMN IF NOT EXISTS `gang_vehicle_rank` INT(10) DEFAULT '0';
UPDATE `owned_vehicles` SET `damage` = '';Replace the files and config
Install the v2 resource files. Start with the v2 config.example.lua, save it as config.lua and copy over your settings and garage locations. Don't reuse the v1 config unchanged.
Fully restart your server, then test storing and retrieving vehicles from your public, private and job garages.
Last updated 18 September 2026