Framework Support
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.
['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',
},
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 a new category called tesla
and import all the vehicles in it. If you have not purchased all the vehicles, delete the vehicles you do not
have.
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');