Migration from v1
Ignore this guide unless you are migrating from v1 of the resource.
Thank you so much for continuing to use Advanced Garages. Your ongoing support is why we keep developing this script.
To migrate, you only need to make a few SQL changes, listed below. Advanced Garages still pulls from the default vehicles table, so you won't lose any of your data if you're migrating from Advanced Garages v1.
Run the following SQL for the new job/gang ownership check:
UPDATE `player_vehicles` SET `citizenid` = `license` WHERE `license` NOT LIKE 'license:%';
UPDATE `player_vehicles` SET `damage` = '';Run the following SQL to add the columns that used to be QB only. Since the script is now universal, you need these for it to work.
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` = '';Gang garage functionality still isn't included, as gangs aren't part of ESX by default.
We don't recommend migrating your config.lua file. Use our new Configurator tool, and you'll have the script configured to your server's needs again in minutes.