Framework Support

Framework Support

The original prices from July 2022 were used.

The following frameworks have ready-made configurations. This registers the vehicles in the appropriate framework and opens certain framework functions for our vehicles.

QB Core

Open the vehicles file located at qb-core/shared/vehicles.lua. Scroll down to the last vehicle and insert the following text between the last vehicle entry ending with }. Make sure you insert the , right after the closing parenthesis of the last vehicle. If you have not purchased all the vehicles, delete the vehicles you do not have.

Branded

vehicles.lua
['airace'] = {
	['name'] = 'AI Race',
	['brand'] = 'Audi',
	['model'] = 'airace',
	['price'] = 298507,
	['category'] = 'audi',
	['hash'] = `airace`,
	['shop'] = 'pdm',
},
['rsetrongt'] = {
	['name'] = 'RS E-Tron GT',
	['brand'] = 'Audi',
	['model'] = 'rsetrongt',
	['price'] = 145675,
	['category'] = 'audi',
	['hash'] = `rsetrongt`,
	['shop'] = 'pdm',
},
['etronsportb'] = {
	['name'] = 'E-Tron Sportback',
	['brand'] = 'Audi',
	['model'] = 'etronsportb',
	['price'] = 99700,
	['category'] = 'audi',
	['hash'] = `etronsportb`,
	['shop'] = 'pdm',
},

Non-branded

vehicles.lua
['airace'] = {
	['name'] = 'AI Race',
	['brand'] = '4Rings',
	['model'] = 'airace',
	['price'] = 298507,
	['category'] = '4rings',
	['hash'] = `airace`,
},
['rsetramgt'] = {
	['name'] = 'RS E-Tram GT',
	['brand'] = '4Rings',
	['model'] = 'rsetramgt',
	['price'] = 145675,
	['category'] = '4rings',
	['hash'] = `rsetramgt`,
},
['etramsportb'] = {
	['name'] = 'E-Tram Sportback',
	['brand'] = '4Rings',
	['model'] = 'etramsportb',
	['price'] = 99700,
	['category'] = '4rings',
	['hash'] = `etramsportb`,
},

ESX

ESX uses an SQL database. Paste the following sql lines into your database management program like phpmyadmin (opens in a new tab) and run them. This will create the corresponding categories and import all the vehicles in it. If you have not purchased all the vehicles, delete the vehicles you do not have.

Branded

vehicles.sql
INSERT INTO `vehicle_categories` (name, label) VALUES ('audi','Audi');
 
INSERT INTO `vehicles` (name, model, price, category) VALUES
('AI Race', 'airace', 298507, 'audi'),
('RS E-Tron GT', 'rsetrongt', 145675, 'audi'),
('E-Tron Sportback', 'etronsportb', 99700, 'audi');
 

Non-branded

vehicles.sql
INSERT INTO `vehicle_categories` (name, label) VALUES ('4rings','4Rings');
 
INSERT INTO `vehicles` (name, model, price, category) VALUES
('AI Race', 'airace', 298507, '4rings'),
('RS E-Tram GT', 'rsetramgt', 145675, '4rings'),
('E-Tram Sportback', 'etramsportb', 99700, '4rings');