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 ๐Ÿงก

Migrating is really simple, you only need to make a few SQL changes stated 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.

QBCore Users

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` = '';
ESX Users

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` = '';

Just to note, gang garages functionality still isn't included, as gangs aren't part of ESX by default.

We don't recommend that you try to migrate your config.lua file. Just use our new Configurator tool linked above, and you will have the script configured to your servers needs again in just minutes ๐Ÿ˜„

Last updated