For this step we recommend you to wipe the vehicles of your server in case you don't have basic knowledge to implement the necessary columns. If you have basic programming skills you can play with this code.
Completely add the sql in your database and don't forget to add any.
Do not continue to the next step without running the sql we mentioned otherwise you will never be able to use the garage correctly.
ALTERTABLE`users`ADDIFNOTEXISTS`shell_garage`TEXTNULLDEFAULT'';CREATETABLEIFNOTEXISTS`owned_vehicles` (`id`INT(11) NOT NULL AUTO_INCREMENT,`owner`VARCHAR(255) NOT NULLCOLLATE'utf8mb4_bin',`tag`VARCHAR(50) NULLDEFAULTNULLCOLLATE'utf8mb4_bin',`plate`VARCHAR(250) NOT NULLCOLLATE'utf8mb4_bin',`vehicle` LONGTEXT NULLDEFAULTNULLCOLLATE'utf8mb4_bin',`type`VARCHAR(20) NOT NULLDEFAULT'vehicle'COLLATE'utf8mb4_bin',`garage`VARCHAR(200) NULLDEFAULT'OUT'COLLATE'utf8mb4_bin',`impound_data`TEXTNULLDEFAULT''COLLATE'utf8mb4_bin',`favorite`INT(3) NOT NULLDEFAULT'0',`stored`TINYINT(4) NULLDEFAULT'0',`jobVehicle`VARCHAR(50) NULLDEFAULT''COLLATE'utf8mb4_bin',`jobGarage`VARCHAR(50) NULLDEFAULT''COLLATE'utf8mb4_bin',PRIMARY KEY (`id`) USING BTREE) COLLATE='utf8mb4_bin' ENGINE = InnoDB AUTO_INCREMENT =1;ALTERTABLE`owned_vehicles` CONVERT TOCHARACTERSET utf8mb4 COLLATE utf8mb4_bin;DROPTABLEIFEXISTS`player_garages`;CREATETABLE `player_garages` (`id`INT(11) NOT NULL AUTO_INCREMENT,`owner`VARCHAR(50) NULLDEFAULTNULLCOLLATE'utf8mb4_unicode_ci',`name`VARCHAR(50) NULLDEFAULTNULLCOLLATE'utf8mb4_unicode_ci',`price`INT(11) NOT NULL,`coords`TEXTNULLDEFAULTNULLCOLLATE'utf8mb4_unicode_ci',`shell`TEXTNULLDEFAULTNULLCOLLATE'utf8mb4_unicode_ci',`type`VARCHAR(50) NULLDEFAULT'vehicle'COLLATE'utf8mb4_unicode_ci',`holders`TEXTNULLDEFAULTNULLCOLLATE'utf8mb4_unicode_ci',`available`INT(11) NULLDEFAULTNULL,`job`VARCHAR(50) NULLDEFAULTNULLCOLLATE'utf8mb4_unicode_ci',PRIMARY KEY (`id`) USING BTREE) COLLATE='utf8mb4_unicode_ci' ENGINE = InnoDB AUTO_INCREMENT =27;
You can add this sql if you want to not lose your current vehicles:
If you don't use the official esx owned_vehicles table and use a heavily modified one, skip this and use the new full column you see above.
This is only in case of inserting missing columns without losing information.
Note that if you want to save your current vehicles and want to only insert columns into owned_vehicles, you will still need to install the other sql from player_garages.