Please uncomment according to the framework you use
shared_scripts {
'config.lua',
"@ox_lib/init.lua",
'@qb-core/shared/locale.lua', -- Open if you are using QB
'locales/qb/*.lua', -- Open if you are using QB
--'@es_extended/locale.lua', -- Open if you are using ESX
--'locales/esx/*.lua',-- Open if you are using ESX
'functions.lua',
}
server_scripts {
'@oxmysql/lib/MySQL.lua',
--'@mysql-async/lib/MySQL.lua', -- Open if you are using mysql-async
'server.lua'
}
2. Add Items on qb-core
You need add several crafting items to qb-core
Go to qb-core script inside, open qb-core/shared/items.lua and crafting items line on bottom
IMPORTANT: Please do not change the item names, it's not supported now
['toolkit'] = {
['name'] = 'toolkit',
['label'] = 'Toolkit',
['weight'] = 100,
['type'] = 'item',
['image'] = 'toolkit.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = false,
['combinable'] = nil,
['description'] = 'It is used to produce some things.'
},
['door'] = {
['name'] = 'door',
['label'] = 'Car Doors',
['weight'] = 100,
['type'] = 'item',
['image'] = 'door.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = false,
['combinable'] = nil,
['description'] = 'Vehicle door can be used in vehicle crafting.'
},
['car_battery'] = {
['name'] = 'car_battery',
['label'] = 'Car Battery',
['weight'] = 100,
['type'] = 'item',
['image'] = 'car_battery.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = false,
['combinable'] = nil,
['description'] = 'Vehicle battery can be used in vehicle crafting.'
},
['sparkplug'] = {
['name'] = 'sparkplug',
['label'] = 'Car Sparkplug',
['weight'] = 100,
['type'] = 'item',
['image'] = 'sparkplug.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = false,
['combinable'] = nil,
['description'] = 'Vehicle sparkplug can be used in vehicle crafting.'
},
['wheel'] = {
['name'] = 'wheel',
['label'] = 'Car Wheel',
['weight'] = 100,
['type'] = 'item',
['image'] = 'wheel.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = false,
['combinable'] = nil,
['description'] = 'Vehicle wheel can be used in vehicle crafting.'
},
['car_glass'] = {
['name'] = 'car_glass',
['label'] = 'Car Glass',
['weight'] = 100,
['type'] = 'item',
['image'] = 'car_glass.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = false,
['combinable'] = nil,
['description'] = 'Vehicle glass can be used in vehicle crafting.'
},
['car_blueprint'] = {
['name'] = 'car_blueprint',
['label'] = 'Car Blueprint',
['weight'] = 100,
['type'] = 'item',
['image'] = 'car_blueprint.png',
['unique'] = false,
['useable'] = false,
['shouldClose'] = false,
['combinable'] = nil,
['description'] = 'Vehicle blueprint can be used in vehicle crafting.'
},
Crafting items list inside q-carcrafting/items.txt
3. Add item photos
you need to add these images to your inventory script.
Go to your inventory script images section
if you are using qb-inventory, go to qb-inventory/html/images directory and paste all images
( Image files is included on q-carcrafting/items_photo directory )
4. Edit qb-menu CSS
Go to qb-menu/html/style.css and remove marked code line
( Needed for remove underline text visuals )
5. Create Craft Zones
You can create zone easily with config file
Red Plane : crafting cars spawning with PolyZone function if you are enter this red plane.
Orange Box :it's defining height of the red plane.
Green Zone : it's defining craftable car positions, must be in the red plane, can be multiple.
Blue Zone : it's defining crafted car spawn location.