Page cover image

ESX Version

Final Version Installation documentation

Required scripts

1. Edit fxmanifest.lua

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 database

You need add several crafting items to database "items" table

Go to your DB Managment Tool ( like : HeidiSQL or PhpMyAdmin ) and run items query.

IMPORTANT: Please do not change the item "name", it's not supported now, label is changeable

INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('toolkit','Toolkit','1','1','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('door','Car Doors','1','1','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('car_battery','Car Battery','1','1','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('sparkplug','Car Sparkplug','1','1','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('wheel','Car Wheel','1','1','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('car_glass','Car Glass','1','1','1');
INSERT INTO `items`(`name`, `label`, `weight`, `rare`, `can_remove`) VALUES ('car_blueprint','Car Blueprint','1','1','1');

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 esx_inventoryhud, go to esx_inventoryhud/html/img/items directory and paste all images

( Image files is included on q-carcrafting/items_photo directory )

4. 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.

5. Done 🎉

You are ready to use car crafting!

Last updated