This is one of the most important parts, since without the dependencies, the resource will never work or not start, here we will list the dependencies with their respective links for you to download and add them to your server.
Step 2 โก Resources in server.cfg
if you are using ESX โก NEVER, but NEVER, you must place the resources above es_extended, if you do this they will never work and will throw errors
The correct order of the resources is as follows, always keeping es_extended and its cores above, but the other normal resources below
ensure sfvehicleshop
Step 3 โก Database
Run query/SQL query and paste below code
ALTERTABLE`vehicles`ADD`class`VARCHAR(2) NULLDEFAULTNULLAFTER`category`, ADD`shop`VARCHAR(16) NOT NULLDEFAULT'vehicle'AFTER`class`, ADD`display`INT(2) NOT NULLDEFAULT'1'AFTER`shop`, ADD`limitSold`INT(11) NOT NULLDEFAULT'0'AFTER`display`, ADD`sold`INT(11) NOT NULLDEFAULT'0'AFTER`limitSold`;CREATETABLE `vehicle_classes` (`name`varchar(60) NOT NULL,`label`varchar(60) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;ALTERTABLE`vehicle_classes`ADDPRIMARY KEY (`name`);INSERT INTO`vehicle_classes` (`name`, `label`) VALUES('A', 'Class A'),('B', 'Class B'),('C', 'Class C'),('D', 'Class D'),('E', 'Class E'),('F', 'Class F'),('S', 'Class S'),('S+', 'Class S+');
CREATETABLE `vehicle_categories` (`name`varchar(60) NOT NULL,`label`varchar(60) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;ALTERTABLE`vehicle_categories`ADDPRIMARY KEY (`name`);CREATETABLE `vehicle_classes` (`name`varchar(60) NOT NULL,`label`varchar(60) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;ALTERTABLE`vehicle_classes`ADDPRIMARY KEY (`name`);CREATETABLE `vehicles` (`id`int(11) NOT NULL,`name`varchar(60) NOT NULL,`model`varchar(60) NOT NULL,`price`int(11) NOT NULL,`category`varchar(60) DEFAULTNULL,`class`varchar(2) DEFAULTNULL,`shop`varchar(16) NOT NULLDEFAULT'vehicle',`display`int(2) NOT NULLDEFAULT1,`limitSold`int(11) NOT NULLDEFAULT0,`sold`int(11) NOT NULLDEFAULT0) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;ALTERTABLE`vehicles`ADDPRIMARY KEY (`id`);ALTERTABLE`vehicles`MODIFY`id`int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;INSERT INTO`vehicle_categories` (`name`, `label`) VALUES('compacts', 'Compacts'),('coupes', 'Coupรฉs'),('motorcycles', 'Motos'),('muscle', 'Muscle'),('offroad', 'Off Road'),('sedans', 'Sedans'),('sports', 'Sports'),('sportsclassics', 'Sports Classics'),('super', 'Super'),('suvs', 'SUVs'),('vans', 'Vans');INSERT INTO`vehicle_classes` (`name`, `label`) VALUES('A', 'Class A'),('B', 'Class B'),('C', 'Class C'),('D', 'Class D'),('E', 'Class E'),('F', 'Class F'),('S', 'Class S'),('S+', 'Class S+');