Configuration

Config = Config or {}

Config.Command = "opencrafting"     -- Only admins
Config.Distance = 1.5

Config.CraftingLocations = {
    [1] = {
        Location = vector3(1208.44, -3115.11, 5.54),
        WhiteList = false,
        WhiteListGang = false,
        WhiteListJob = "police",
        WhiteListGangName = "ballas",
    },
    -- Add as many locations as you want / Copy Paste
}

Config.PedModelCoords = {
    {x = 1208.74, y = -3116.09, z = 5.54, h = 56.82},
}

Config.CraftingExtras = {
    ShowPedModel = true,
    ShowMarker = true,
    PedModel = "a_m_m_og_boss_01",
    MarkerId = 1,
    MarkerColor = { r= 50, g= 200, b= 160 },
}

Config.UseCustomNotify = false
Config.CustomNotify = function()
    -- Use your own custom export
end

Config.Lang = {
    ["openmenu"] = "Press ~INPUT_CONTEXT~ to open Crafting Menu",
    ["successful"] = "You successfully crafted ",
    ["missing_items"] = "You do not have enough materials! Missing: ",
}

Config.WeaponList = {
    [1] = {
        Label = "Assault Rifle",                    -- Item Label
        CraftingItem = "weapon_assaultrifle",       -- Item name
        Amount = 1,                                 -- Amount of how much you get after crafting
        Duration = 2*10000,                         -- 20sek
        RequiredItems = {                           -- Add as many as you want
            { Item = "metalscrap", Amount = 30 },
            { Item = "steel", Amount = 15 },
            { Item = "rubber", Amount = 15 },
            { Item = "plastic", Amount = 15 },
            { Item = "iron", Amount = 15 },
            { Item = "electronickit", Amount = 15 },
            { Item = "cryptostick", Amount = 15 },
            { Item = "copper", Amount = 30 },
            { Item = "lockpick", Amount = 15 },
            { Item = "aluminum", Amount = 15 },
            { Item = "glass", Amount = 15 },
        }
    },
    [2] = {
        Label = "Pistol",
        CraftingItem = "weapon_pistol",
        Amount = 1,
        Duration = 2*10000,
        RequiredItems = {
            { Item = "metalscrap", Amount = 30 },
            { Item = "steel", Amount = 15 },
            { Item = "rubber", Amount = 15 },
        }
    },
    [3] = {
        Label = "AP Pistol",
        CraftingItem = "weapon_appistol",
        Amount = 1,
        Duration = 2*10000,
        RequiredItems = {
            { Item = "metalscrap", Amount = 30 },
            { Item = "steel", Amount = 15 },
            { Item = "rubber", Amount = 15 },
            { Item = "plastic", Amount = 15 },
            { Item = "iron", Amount = 15 },
            { Item = "electronickit", Amount = 15 },
        }
    },
    -- Add more weapon items here
}

-- Extras List
Config.ExtraList = {
    [1] = {
        Label = "Pistol Ammo",
        CraftingItem = "pistol_ammo",
        Amount = 10,
        Duration = 2*10000,
        RequiredItems = {
            { Item = "metalscrap", Amount = 10 },
            { Item = "plastic", Amount = 5 }
        }
    },
    [2] = {
        Label = "SMG Ammo",
        CraftingItem = "smg_ammo",
        Amount = 10,
        Duration = 2*10000,
        RequiredItems = {
            { Item = "metalscrap", Amount = 10 },
            { Item = "plastic", Amount = 5 }
        }
    },
    [3] = {
        Label = "Shotgun Ammo",
        CraftingItem = "shotgun_ammo",
        Amount = 5,
        Duration = 2*10000,
        RequiredItems = {
            { Item = "metalscrap", Amount = 10 },
            { Item = "plastic", Amount = 5 }
        }
    },
    -- Add more extra items here
}
```

Last updated