Configuration

Config = {}

Config.ShowMarker = true                                -- Enable/Disable Marker
Config.ShowText = true                                  -- Enable/Disable Drawtext
Config.MarkerColor = { r = 220, g = 180, b = 40 }       -- RGB Color of Marker
Config.DrawScale = { x = 0.7, y = 0.7, z = 0.2 }        -- Marker size
Config.MarkerId = 1                                     -- Marker ID
Config.TextDist = 1.5                                   -- Distance of the Drawtext
Config.MarkerDist = 10.0                                -- Distance for marker
--//
Config.CraftingProcessDist = 10.0                       -- Radius where the crafting process continues
Config.InteractDist = 1.5                               -- Distance to interact with the crafting menu

Config.PlayerCraftingLevel = {
    -- Add as many level as you want with the required XP
    [0] = 0,        -- Starter level - Dont touch
    [1] = 500,      -- Level 1 needs 500xp
    [2] = 1500,     -- Level 2 needs 1500xp
    [3] = 2500,
    [4] = 4000,
    [5] = 6500,
    [6] = 8000,
    [7] = 10000,
    [8] = 12500,
    [9] = 15000,
    [10] = 20000,
}

Config.CraftingLocation = {
    --[[
    // -- EXAMPLE OF CREATING 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
                },
            },
            --
        },
    },
    
    ]]

    -- 1.Crafting Bench
    [1] = {
        Location = vector3(897.82, -3221.19, -98.25),
        LocName = "Enter Crafting Name",
        WhiteListJob = false,
        WhitelistGang = false,
        WhiteListJobname = {"police", "sheriff", },
        WhitelistGangname = {"ballas", "grove", },
        CraftingItems = {
            [1] = { 
                ItemName = "weapon_heavysniper",
                Label = "Sniper",
                Level = 10,
                XP = 2000,
                ItemAmount = 1,
                CraftingDuration = 25*60000,
                RequiredItems = {
                    {Item= "metalscrap", Label= "Metalscrap", Amount= 3500 },
                    {Item= "steel", Label= "Steel", Amount= 2000 },
                    {Item= "iron", Label= "Iron", Amount= 2000 },
                    {Item= "copper", Label= "Copper", Amount= 500 },
                    {Item= "plastic", Label= "Plastic", Amount= 2500 },
                    {Item= "rubber", Label= "Rubber", Amount= 2500 },
                },
            },
            [2] = { 
                ItemName = "weapon_specialcarbine",
                Label = "Special Carbine",
                Level = 10,
                XP = 1000,
                ItemAmount = 1,
                CraftingDuration = 20*60000,
                RequiredItems = {
                    {Item= "metalscrap", Label= "Metalscrap", Amount= 2000 },
                    {Item= "steel", Label= "Steel", Amount= 1000 },
                    {Item= "iron", Label= "Iron", Amount= 1000 },
                },
            },
        },
    },
    -- 2.Crafting Bench
    [2] = {
        Location = vector3(905.98, -3230.74, -98.29),
        LocName = "Enter Crafting Name",
        WhiteListJob = false,
        WhitelistGang = false,
        WhiteListJobname = {"police", "sheriff", },
        WhitelistGangname = {"ballas", "grove", },
        CraftingItems = {
            [1] = { 
                ItemName = "weapon_pistol",
                Label = "Pistol",
                Level = 1,
                XP = 350,
                ItemAmount = 1,
                CraftingDuration = 5*60000,
                RequiredItems = {
                    {Item= "metalscrap", Label= "Metalscrap", Amount= 1000 },
                    {Item= "steel", Label= "Steel", Amount= 100 },
                    {Item= "iron", Label= "Iron", Amount= 10 },
                    {Item= "copper", Label= "Copper", Amount= 10 },
                    {Item= "plastic", Label= "Plastic", Amount= 1000 },
                    {Item= "rubber", Label= "Rubber", Amount= 100 },
                    {Item= "cryptostick", Label= "Crypto", Amount= 10 },
                    {Item= "advancedlockpick", Label= "Lockpick", Amount= 1000 },
                    {Item= "screwdriverset", Label= "Driverset", Amount= 100 },
                    {Item= "electronickit", Label= "Electrokit", Amount= 10 },
                    {Item= "glass", Label= "Glass", Amount= 10 },
                },
            },
            [2] = { 
                ItemName = "weapon_appistol",
                Label = "AP Pistol",
                Level = 2,
                XP = 500,
                ItemAmount = 1,
                CraftingDuration = 10*60000,
                RequiredItems = {
                    {Item= "metalscrap", Label= "Metalscrap", Amount= 2000 },
                    {Item= "steel", Label= "Steel", Amount= 1000 },
                    {Item= "iron", Label= "Iron", Amount= 100 },
                    {Item= "copper", Label= "Copper", Amount= 100 },
                    {Item= "plastic", Label= "Plastic", Amount= 2000 },
                    {Item= "rubber", Label= "Rubber", Amount= 500 },
                    {Item= "cryptostick", Label= "Crypto", Amount= 100 },
                    {Item= "advancedlockpick", Label= "Lockpick", Amount= 2000 },
                    {Item= "screwdriverset", Label= "Driverset", Amount= 500 },
                    {Item= "electronickit", Label= "Electrokit", Amount= 100 },
                    {Item= "glass", Label= "Glass", Amount= 100 },
                },
            },
        },
    },
    -- Add as many locations as you want
}

Config.Lang = {
    ["key_pressed"] = "[E] Open Crafting",
    ["successful"] = "Your crafting was successful: ",
    ["no_items"] = "Not enough materials: ",
    ["no_rights"] = "You do not have rights to open this.",
    ["low_level"] = "Your crafting level is too low!",
}

Last updated