Framework Support
The original prices from 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.
['bmwi3'] = {
['name'] = 'BMW i3',
['brand'] = 'BMW',
['model'] = 'bmwi3',
['price'] = 45445,
['category'] = 'bmw',
['hash'] = `bmwi3`,
['shop'] = 'pdm',
},
['bmwix'] = {
['name'] = 'BMW iX',
['brand'] = 'BMW',
['model'] = 'bmwix',
['price'] = 95095,
['category'] = 'bmw',
['hash'] = `bmwix`,
['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 ('bmw','BMW');
INSERT INTO `vehicles` (name, model, price, category) VALUES
('i3', 'bmwi3', 45445, 'bmw'),
('iX', 'bmwix', 95095, 'bmw');