Installation
Dependencies
QBCore Framework
ESX Framework
How to install
Drag the script in your resource folder & run the SQL player_crafting
Add new location
Here is a copy & paste example, how to create a new location.
[1] = { -- Change the number if you add a new location
Location = vector3(905.98, -3230.74, -98.29), -- Location of the crafting menu
LocName = "Enter Crafting Name", -- Name of the crafting location
WhiteListJob = false, -- If true only jobs in "WhiteListJobname" can see the crafting menu
WhitelistGang = false, -- If true only gangs in "WhitelistGangname" can see the crafting menu
WhiteListJobname = {"police", "sheriff", },
WhitelistGangname = {"ballas", "grove", },
CraftingItems = {
[1] = {
ItemName = "weapon_pistol", -- Item what you get after crafting
Label = "Pistol", -- Item label
Level = 1, -- Required level to craft this item
XP = 350, -- Amount of XP what you receive after crafting
ItemAmount = 1, -- Amount of crafting item
CraftingDuration = 5*60000, -- Duration of the crafting / 60000 or 1*60000 = 60sec
RequiredItems = { -- Required items what you need to craft the item
{Item= "iron", Label= "Iron", Amount= 10 }, -- Add as many required items with amount as you want
},
},
-- Here you can add a new row
[2] = {
ItemName = "weapon_pistol", -- Item what you get after crafting
Label = "Pistol", -- Item label
Level = 1, -- Required level to craft this item
XP = 350, -- Amount of XP what you receive after crafting
ItemAmount = 1, -- Amount of crafting item
CraftingDuration = 5*60000, -- Duration of the crafting / 60000 or 1*60000 = 60sec
RequiredItems = { -- Required items what you need to craft the item
{Item= "iron", Label= "Iron", Amount= 10 }, -- Add as many required items with amount as you want
},
},
--
},
},
Add item to location
Example how to add a new crafting item to a location.
[1] = {
ItemName = "weapon_pistol", -- Item what you get after crafting
Label = "Pistol", -- Item label
Level = 1, -- Required level to craft this item
XP = 350, -- Amount of XP what you receive after crafting
ItemAmount = 1, -- Amount of crafting item
CraftingDuration = 5*60000, -- Duration of the crafting / 60000 or 1*60000 = 60sec
RequiredItems = { -- Required items what you need to craft the item
{Item= "iron", Label= "Iron", Amount= 10 }, -- Add as many required items with amount as you want
},
},
Last updated