Configuration

1. Events

you have more than one event in this config, you have a client and server events.

Config.ItemBox = 'inventory:client:ItemBox' -- inventory item box event
Config.CoreNotify = 'QBCore:Notify' -- notify event

2. Webhook

Our webhook for Discord must be added. If you don't know how to receive a webhook, it's simple and we walk you through it in the video below. To ensure you don't miss any steps, pay close attention :

Config.Webhook = '' -- Log Webhook

3. main scripts

here you must to change this config to work with your server, like your Core Name and your Target name script, Inventory name script ... and if you want to use 1 color for all UI.

Config.Core = 'qb-core'
Config.Inventory = 'qb-inventory'
Config.Target = 'qb-target' 
Config.Color = '#0182da' -- UI Color

4. Script Settings

l2s-crafting has a advanced system you can add high level in crafting and you can edit LockItems id you want only show item if he has level, also you can add Craft Object.

Config.LevelMax = 15000 -- high level in crafting ui
Config.LockItems = true -- (true = yes lock item if you dont have item level)
Config.DoneNotify = true -- if you need notify in screen adfter your item is done
Config.CraftObj = -573669520*

5. Language

in l2s-crarfting you can change the Language to any Language do you want.

Config.Lang = {
	-- UI Lang
	[1] = 'Crafting',
	[2] = 'Craft',
	[3] = 'Your items is ready',
	[4] = 'Ready for take',
	[5] = 'Manufactured Items',
	[6] = 'Part',
	-- Notifys
	[7] = 'item not finished yet',
	[8] = 'there is no peacti like it',
	[9] = 'This item already in wait list',
	[10] = 'You dont have enough materials',
	[11] = 'You dont have enough level',
	[12] = 'The piece has been add to wating list',
	[13] = "Crafting Table",
}

6. Categories

In l2s-crafting you more than 5 Categories, you can add and change the name, img, icon and text.

Config.Categories = {
	[1] = {
		label = 'Tools',
		img = 'https://cdn.discordapp.com/attachments/1028307243948572714/1095772493496717332/lockpick.png',
		icon = 'fas fa-toolbox',
		text = 'here is the text',
		items = {
			[1] = {
				item = 'lockpick',
				Level = 0,-- Item Level
				ExperiancePerCraft = 1, -- How many points are added after crafting?
				time = 0.2, -- by minutes (60 == 1hour) (30 == half hour) (0.1 == 6seconds)
				Ingredients = {-- Crafting Ingredients
					[1] = {item = "plastic", amount = 1},
					[2] = {item = "metalscrap", amount = 1},
				}
			},
-- more than 9
            [9] = {
				item = 'armor',
				Level = 320,-- Item Level
				ExperiancePerCraft = 2, -- How many points are added after crafting?
				time = 1, -- by minutes (60 == 1hour) (30 == half hour) (0.1 == 6seconds)
				Ingredients = {-- Crafting Ingredients
					[1] = {item = "iron", amount = 33},
					[2] = {item = "metalscrap", amount = 44},
					[3] = {item = "copper", amount = 27},
					[4] = {item = "aluminum", amount = 22},
				}
			},
		},
	},

    [2] = {
		label = 'Thefts Tools',
		img = 'https://cdn.discordapp.com/attachments/1028307243948572714/1095773142636564562/thermaldrill.png',
		icon = 'fas fa-unlock-alt',
		text = 'here is the text',
		items = {
			[1] = {
				item = 'thermite',
				Level = 450,-- Item Level
				ExperiancePerCraft = 1, -- How many points are added after crafting?
				time = 1, -- by minutes (60 == 1hour) (30 == half hour) (0.1 == 6seconds)
				Ingredients = {-- Crafting Ingredients
					[1] = {item = "iron", amount = 50},
					[2] = {item = "screwdriverset", amount = 2},
					[3] = {item = "electronickit", amount = 1},
				}
			},
		}
	},

    [3] = {
		label = 'Weapons Parts',
		img = 'https://cdn.discordapp.com/attachments/1028307243948572714/1095768458098126878/ak47_part_6.png',
		icon = 'fa-solid fa-trowel',
		text = 'here is the text',
		items = {
			[1] = {
				item = 'snspistol_part_1',
				Level = 650,-- Item Level
				ExperiancePerCraft = 1, -- How many points are added after crafting?
				time = 1, -- by minutes (60 == 1hour) (30 == half hour) (0.1 == 6seconds)
				Ingredients = {-- Crafting Ingredients
					[1] = {item = "metalscrap", amount = 27},
					[2] = {item = "plastic", amount = 20},
					[3] = {item = "steel", amount = 23},
					[4] = {item = "iron", amount = 40},
				}
			},
            --more than 4
            [4] = {
				item = 'snspistol_stage_1',
				Level = 1000,-- Item Level
				ExperiancePerCraft = 1, -- How many points are added after crafting?
				time = 1, -- by minutes (60 == 1hour) (30 == half hour) (0.1 == 6seconds)
				Ingredients = {-- Crafting Ingredients
					[1] = {item = "metalscrap", amount = 27},
					[2] = {item = "plastic", amount = 16},
					[3] = {item = "steel", amount = 30},
					[4] = {item = "copper", amount = 15},
				}
			},
		}
    [4] = {
		label = 'Weapon Tools',
		img = 'https://cdn.discordapp.com/attachments/1028307243948572714/1095768852043939911/smg_suppressor.png',
		icon = 'fa-solid fa-gun',
		text = 'here is the text',
		items = {
			[1] = {
				item = 'pistol_ammo',
				Level = 400,-- Item Level
				ExperiancePerCraft = 1, -- How many points are added after crafting?
				time = 1, -- by minutes (60 == 1hour) (30 == half hour) (0.1 == 6seconds)
				Ingredients = {-- Crafting Ingredients
					[1] = {item = "metalscrap", amount = 50},
					[2] = {item = "steel", amount = 37},
					[3] = {item = "copper", amount = 26},
				}
			},
            --more than 8
            [8] = {
				item = 'rifle_suppressor', 
				Level = 11400,-- Item Level
				ExperiancePerCraft = 1, -- How many points are added after crafting?
				time = 1, -- by minutes (60 == 1hour) (30 == half hour) (0.1 == 6seconds)
				Ingredients = {-- Crafting Ingredients
					[1] = {item = "iron", amount = 70},
					[2] = {item = "steel", amount = 37},
					[3] = {item = "rubber", amount = 5},
					[4] = {item = "copper", amount = 65},
				}
			},
		}    

    [5] = {
		label = 'Weapons',
		img = 'https://static.wikia.nocookie.net/gta/images/d/dc/PistolMK2-new.PNG/revision/latest?cb=20170810080928&path-prefix=ru',
		icon = 'fa-solid fa-person-rifle',
		text = 'here is the text',
		items = {
			[1] = {
				item = 'weapon_snspistol',
				Level = 1100,-- Item Level
				ExperiancePerCraft = 3, -- How many points are added after crafting?
				time = 5, -- by minutes (60 == 1hour) (30 == half hour) (0.1 == 6seconds)
				Ingredients = {-- Crafting Ingredients
					[1] = {item = "snspistol_part_1", amount = 1},
					[2] = {item = "snspistol_part_2", amount = 1},
					[3] = {item = "snspistol_part_3", amount = 1},
					[4] = {item = "snspistol_stage_1", amount = 1},
				}
			},
			[2] = {
				item = 'weapon_pistol',
				Level = 1800,-- Item Level
				ExperiancePerCraft = 3, -- How many points are added after crafting?
				time = 5, -- by minutes (60 == 1hour) (30 == half hour) (0.1 == 6seconds)
				Ingredients = {-- Crafting Ingredients
					[1] = {item = "pistol_part_1", amount = 1},
					[2] = {item = "pistol_part_2", amount = 1},
					[3] = {item = "pistol_part_3", amount = 1},
					[4] = {item = "pistol_stage_1", amount = 1},
				}
			},
		}
	},    
}

Last updated

2023 - 2024 All rights reserved