Installation
Welcome to the it-crafting installation guide, here you can learn how to completely install our asset, following each step we will achieve a clean and fluid installation where you will not find any problems, as long as the documentation has been completed in full.
If you do not have programming experience, we recommend that you read each step completely without skipping any lines, since all documentation is important and should not be ignored under any circumstances. If you have a trusted developer, you can install this quickly, easily and safely if you complete this documentation step by step.
If at the end of this documentation you still have any problems, review each step again, after having checked that everything is correct, you can obtain more information about common errors in the Common Problems section within this same documentation to seek help independently.
When installing the script make sure to not rename the script folder, this can cause errors in the script. The name of the script folder should always be it-crafting.
Asset download
You can download the latest version of the script for free on the it-script GitHub Account.
If you have downloaded the script from another site, there is no guarantee that the script will actually work. Please download it again from the it-scripts GitHub page.
If you have paid money for this script, it is a SCAM. The it-crafting script is and will always remain free. Please report the page to us on the Discord server.
Asset dependencies
Dependencies | Links |
---|---|
ox_lib | https://github.com/overextended/ox_lib/releases (opens in a new tab) |
oxmysql | https://github.com/overextended/oxmysql (opens in a new tab) |
Target System | |
ESX (ox_target) | https://github.com/overextended/ox_target (opens in a new tab) |
QbCore (qb-target) | https://github.com/qbcore-framework/qb-target (opens in a new tab) (Currently not supported!) |
You can also you ox_target on your QbCore Server but only if you are using ox_target with version 1.16.0 or older!
Asset positioning
Correctly position the assets by following this step, if something goes wrong you will probably get errors about exports not found, do not skip this step.
For the execution of this asset, we will respect the respective order mentioned below.
-- First we will start the Database
ensure oxmysql
-- Then we will start the cores, never below
ensure es_extended or qb-core
-- Your inventory system, always on top
ensure inventory
--Then we start all the dependencies
ensure ox_lib
ensure ox_target -- Only if you are using a target system
-- Run it-crafting here along with its dependencies
ensure it-crafting
Database
Our crafting script includes one database, befor the first start of the script you should check if the tables allready exists in your Database and delete them if they exists. If you just update the script you dont have to do this.
-- Check for the it_crafting_tables table
DROP TABLE IF EXISTS `it_crafting_tables`;
The Script will automaticly install and update the database but if you want you still can intall the database manually with this commands:
-- Install the it_crafting_tables table
CREATE TABLE IF NOT EXISTS it_crafting_tables (
id VARCHAR(11) NOT NULL, PRIMARY KEY(id),
coords LONGTEXT NOT NULL,
rotation DOUBLE NOT NULL,
owner LONGTEXT NOT NULL,
type VARCHAR(100) NOT NULL
);
Items for it-crafting
This guid is only for the scripts default items, but you can add new items after the same shemata.
If you use qbcore + ox_inventory, you must add the items inside ox_inventory for the items using to work.
Here you will find a series of selected items in different extensions for different inventories, select the option that suits your server, remember to check if your inventory works with this script! Also for this script you can use all items on your server to craft items with the crafting table. You can configure everything int the it-crafting config file.
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('scrapmetal', 'Scrap Metal', 500, 0, 1),
('lockpick', 'Lockpick', 100, 0, 1),
('cloth', 'Cloth', 200, 0, 1),
('scissors', 'Scissors', 250, 0, 1),
('bandage', 'Bandage', 50, 0, 1),
('simple_crafting_table', 'Simple Crafting Table', 2000, 0, 1)
;
Use Webhooks
You want to log the different actions of the script on your discord server? Then take a look at this.
Basic asset configuration
We do not recommend editing frameworks unnecessarily, since almost all assets depend exclusively on your framework and exports on the name of your framework. Otherwise and if you edited your framework, read these steps carefully.
Please expand each part to see information about the configuration of the asset, this way you will understand the general operation of the asset on the framework and editable files side.
The asset will work automatically if your framework is called es_extended or qb-core, it will automatically detect if any of them are started.
If your framework is completely modified, both in events and name, you should access the bridge folder to adapt the native events of your framework to the codes you have created. If this step doesn't work, we ask that you ask your framework modifier or trusted developer for help.
Fell free to edit the complete. If you made some changes and think others can use them, feel free to open a pull request on GitHub, and we maybe adapt your changes to the script.