# Config

```lua
['example_recipe'] = {
	count = 1, -- how many items to get for the required materials
	global = false, -- true = will show without blueprint / false = need blueprint to see
	xpReward = 200, -- how much xp to give
	levelRequired = 1, -- what level is needed to craft the recipe
	duration = 10000, -- crafting duration (it will be duration * quantity)
	maxCraftAmount = 2, -- how many items you can craft at maximum (remove this line and you can craft as many as you have materials for)
	title = 'Example item', -- used only if you dont have ox_inventory or qs-inventory (otherwise its automatic)
	requirements = {-- table containing all required materials being key = value
		['example_1'] = 1,
	}
},
```

```lua
Config = {}


-- EDIT LOCALE IN bridge/locales.lua

-- items that wont be removed upon crafting
Config.PermanentItems = {
	['shaker'] = {
		durability = {1,2} -- set to nil to disable otherwise it will reduce this amount of durability per crafting
	},
	
	['wrench'] = {
		durability = {1,2} -- set to nil to disable otherwise it will reduce this amount of durability per crafting
	},
	
}


Config.Inventory = 'ox_inventory' -- ox_inventory / qs-inventory / qb-inventory / esx
Config.ImagePath = 'nui://ox_inventory/web/images/' -- location of your images

Config.Target = 'ox_target' -- ox_target / qb-target


-- these are usable items which will add it to your crafting book as permanent recipe
Config.Blueprints = {
	-- item name = recipe key
	['blueprint_pistol'] = {
		key = 'WEAPON_PISTOL', -- this must be the key name for the recipe
		text = 'Pistol', -- shown in notify when player adds blueprint
	},
		
	['blueprint_musket'] = {
		key = 'WEAPON_MUSKET', -- this must be the key name for the recipe
		text = 'Musket', -- shown in notify when player adds blueprint
	},
		

}

-- starts from level 1 so first value must be [2]
Config.Levels = {
	[2] = 500,
	[3] = 1000,
	[4] = 2500,
	[5] = 5000,
	[6] = 10000,
}

-- if you dont have ox_inventory or qs_inventory you can determine recipes title by title = 'name'

Config.Books = {
	-- ITEM NAME must be added as item in ox_inventory or other inventory resource (qs-inventory)	
	['craftingbook'] = {
		levels = true, -- will enable level system for this specific category (UI)
		categories = {

			['weapons'] = {
				label = 'Weapons',
				animation = {
					dict = 'mini@repair',
					anim = 'fixing_a_ped',
				},
				recipes = {

					['WEAPON_PISTOL'] = {
						count = 1, -- how many items to get for the required materials
						global = false, -- true = will show without blueprint / false = need blueprint to see
						xpReward = 200, -- how much xp to give
						levelRequired = 1, -- what level is needed to craft this
						duration = 10000, -- crafting duration (it will be duration * quantity)
						requirements = {
							['metal'] = 30, -- quantity is amount needed for one piece
							['spring'] = 1,
							['pistolbarrel'] = 1,
							['pistolbody'] = 1,
							['plastic'] = 5,
						}
					},
					
					['WEAPON_VINTAGEPISTOL'] = {
						count = 1,
						global = true, -- true = will show without blueprint / false = need blueprint to see
						xpReward = 50, -- how much xp to give
						levelRequired = 1, -- what level is needed to craft this
						duration = 100, -- crafting duration
						requirements = {
							['metal'] = 1, -- quantity is amount needed for one piece
						}
					},
					
				},
			},


			['ammo'] = {
				label = 'Ammo',
				animation = {
					dict = 'mini@repair',
					anim = 'fixing_a_ped',
				},
				recipes = {

					['ammo-9'] = {
						count = 1,
						global = true, -- if its set to true it will be shown always on crafting book
						xpReward = 50, -- how much xp to give
						levelRequired = 2, -- what level is needed to craft this
						duration = 100, -- crafting duration
						requirements = {
							['metal'] = 1, -- quantity is amount needed for one piece
						}
					},

				},
			},


		}
	},

}


Config.UsableItems = {
	['bbq'] = { -- ITEM NAME
		prop = 'prop_bbq_5', -- PROP TO BE USED
		categories = {
				['suolaiset'] = {
					label = 'Food',
					
					animation = {
						male = {
							scenario = "PROP_HUMAN_BBQ",
							duration = 15000,
							
						},
						
						female = {
							dict = 'amb@prop_human_bbq@male@idle_a',
							anim = 'idle_b',
							duration = 10000,
							AnimationOptions = {
								Prop = "prop_fish_slice_01",
								PropBone = 28422,
								PropPlacement = {
									0.0,
									0.0,
									0.0,
									0.0,
									0.0,
									0.0
								},
								EmoteLoop = true,
								EmoteMoving = true
							}
						}
						
					},
					
					recipes = {
	
						['pizza_pepperoni'] = { 
							count = 6,
							requirements = {
								pepperoni = 6, egg = 1, vehnajauho = 1, egg = 1, tomaattikastike = 1 
							}
						},

						['hampurilainen'] = { 
							count = 4,
							requirements = {
								vehnajauho = 1, deer_liha = 1, onion = 1, cheese = 1
							}
						},
						
						['porkkanakakku'] = { 
							count = 1,
							requirements = {
								carrot = 2, vehnajauho = 1, egg = 1, sugar = 1 
							}
						},
						
					},
				},
			}
		},

}


Config.CraftingPoints = {
    
	['yleinenkasauspoyta'] = {
		levels = true,
        job = nil,
        grade = 0,
        coords = vector4(2261.7319, 4981.0361, 41.3960, 48.778), -- set this to nil if you want to use allprops
		prop = 'gr_prop_gr_bench_02a',
		allprops = false, -- true == all props on the map
        categories = {
            ['ruoste'] = {
                label = 'Rust',
				animation = {
					dict = 'mini@repair',
					anim = 'fixing_a_ped',
					duration = 10000,
				},
						
                recipes = {
                    ['kympenninkolikko'] = {
						count = 1,
						requirements = { 
							
							['ruostunutkolikko1'] = 1,
							['ruosteenpoistoaine'] = 1,
		
						},
					},
					
					['hevosenkenka'] = {
						count = 1,
						requirements = { 
							['ruostehevosenkenka'] = 1, -- kalastus
							['ruosteenpoistoaine'] = 1, -- tavarakauppa
						
						},
					},
					
					['WEAPON_KNUCKLE'] = {
						count = 1,
						requirements = {
							['ruostunut_nyrkkirauta'] = 1,
							['ruosteenpoistoaine'] = 10,
							['hiomakivi'] = 1,
						}
					},
					
					['WEAPON_CROWBAR'] = {
						count = 1,
						requirements = {
							['ruostunut_crowbar'] = 1, -- kalastus
							['ruosteenpoistoaine'] = 5, -- tavarakauppa
							['hiomakivi'] = 1,
						}
					},
					
					['WEAPON_MACHETE'] = {
						count = 1,
						requirements = {
							['ruostunut_machete'] = 1, -- kalastus
							['ruosteenpoistoaine'] = 10, -- tavarakauppa
							['hiomakivi'] = 1,
						}
					},
					
					
	
                },

            },
			
			
			['fossiili'] = {
                label = 'Fossils',
				animation = {
					dict = 'mini@repair',
					anim = 'fixing_a_ped',
					duration = 10000,
				},
						
                recipes = {
                    ['fossiilipuhdistettu'] = {
						count = 1,
						requirements = { 

							['fossiili'] = 1, -- metallinpaljastin
							['fossiilipuhdistusaine'] = 1, -- tavarakauppa
							['fossiiliharja'] = 1, -- tavarakauppa
						
						
						},
					},
					
					['fossiilidinosaurus'] = {
						count = 1,
						requirements = { 

							['fossiililuu'] = 6, -- metallinpaljastus
							['fossiilijalka'] = 4, -- metallinpaljastus
							['fossiilipaa'] = 1, -- metallinpaljastus
						
						
						},
					},
					

                },

            },
			
			
			
			['elektroniikka'] = {
                label = 'Electronics',
				animation = {
					dict = 'mini@repair',
					anim = 'fixing_a_ped',
					duration = 10000,
				},
						
                recipes = {
                    ['drone'] = {
						count = 1,
						requirements = { 

							['dronepotkuri'] = 4,
							['dronekamera'] = 1,
							['dronerunko'] = 1,
							['muovi'] = 10,
							['titaani'] = 2,
						
						
						},
					},
					

                },

            },
			
			
			
			['tarvikkeet'] = {
                label = 'Utils',
				animation = {
					dict = 'mini@repair',
					anim = 'fixing_a_ped',
					duration = 10000,
				},
						
                recipes = {
                    ['armorplate'] = {
						count = 1,
						levelRequired = 10,
						xpreward = 250,
						requirements = {
							['muovi'] = 3,
							['steel'] = 2,
							['kevlar'] = 3,
							['metal_scrap'] = 4,
						}
					},

					['cement'] = {
						count = 1,
						requirements = {
							['clay'] = 20,
							['iron_ore'] = 1,
						}
					},
					
					['tiirikkasetti'] = {
						count = 1,
						levelRequired = 5,
						xpreward = 250,
						requirements = {
							['tiirikkamuotti'] = 1,
							['metal'] = 2,
							['muovi'] = 5,
						}
					},
					
					['sm_ladder'] = {
						count = 1,
						requirements = {
							['aluminum'] = 5,
							['pultti'] = 2,
							['mutteri'] = 2,
							['jakoavain'] = 1,
						}
					},
					
					['ruuti'] = {
						count = 5,
						xpReward = 100,
						requirements = {
							['sulfur'] = 15,
							['coal'] = 5,
						}
					},
					
					['nalli'] = {
						count = 5,
						requirements = {
							['aluminum'] = 2,
							['coal'] = 2,
						}
					},
					
					
					

                },

            },

		},
	},
	
	['drinks'] = {
		job = nil,
		coords = {
				['casino'] = { -- job name
					vector3(974.5662, 19.9202, 80.8037),
					vector3(946.7656, 16.7520, 115.9710),
				},
				['lostmc'] = { -- job name
					vector3(268.6849, 2996.1033, 46.2324),
					vector3(261.4171, 2995.5654, 42.9665),
				},
				['automaailma'] = { -- job name
					vector3(130.6503, -1286.7439, 29.2190),
				},
				
			},
			categories = {
				['drinkit'] = {
					label = 'Drinks',
					animation = {
						dict = 'anim@scripted@freemode@postertag@graffiti_spray@heeled@',
						anim = 'shake_can_female',
						duration = 10000,
						AnimationOptions = {
							Prop = "prop_bar_cockshaker",
							PropBone = 28422,
							PropPlacement = {
								0.0,
								0.0,
								-0.17,
								0.0,
								0.0,
								0.0
							},
							EmoteLoop = true,
							EmoteMoving = true
						}
					},
							
					recipes = {
						['mojito'] = {
							count = 1,
							requirements = { 

								shaker = 1, 
								lime = 1, 
								vaalearommi4cl = 1, 
								mint = 4, 
								vesi = 1, 
								sugar = 1, 
							
							
							},
						},
						
						['valkovenalainen'] = {
							count = 1,
							requirements = { 

								shaker = 1, 
								jaapala = 1, 
								milk = 1, 
								vodka4cl = 1, 
								kahvilikoori4cl = 1, 
							
							
							},
						},
					},
				},
			},
		},
	
	['scale'] = {
	
		job = nil,
        grade = 0,
        coords = nil, -- set this to nil if you want to use allprops
		prop = 'prop_monitor_01a',
		allprops = true, -- true == every prop in map

		
		categories = {
			['coke'] = {
				label = 'Coke',
				animation = {
					dict = 'mini@repair',
					anim = 'fixing_a_ped',
					duration = 10000,
				},
				recipes = {
					['coke_minigrip'] = {
						count = 100,
						requirements = {
							coke = 1, minigrip = 100
						}
					},
					
					['coke_lannoite'] = {
						count = 1,
						requirements = {
							lannoite = 1, coke_minigrip = 10
						}
					},
		
					['coke_cement'] = {
						count = 1,
						requirements = {
							cement = 1, coke_minigrip = 10
						}
					},
				}
			},
			
			['kokaiini'] = {
				label = 'Weed',
				animation = {
					dict = 'mini@repair',
					anim = 'fixing_a_ped',
					duration = 10000,
				},
				recipes = {
					['coke_minigrip'] = {
						count = 100,
						requirements = {
							coke = 1, minigrip = 100
						}
					},
					
					['coke_lannoite'] = {
						count = 1,
						requirements = {
							lannoite = 1, coke_minigrip = 10
						}
					},
		
					['coke_cement'] = {
						count = 1,
						requirements = {
							cement = 1, coke_minigrip = 10
						}
					},
				}
			},

		}
	},
	
	
}
```
