Configuration

Config = Config or {}

Config.Command = "opencrafting"     -- Only admins
Config.Distance = 1.5
Config.CraftingRadius = 20.0
Config.Persistence = {
    UpdateInterval = 1000,        -- ms between server persistence ticks
    ResumeNotify = true,          -- show a notification when a session is restored on login
}

Config.CraftingLocations = {
    [1] = {
        Location = vector3(1208.44, -3115.11, 5.54),
        Radius = 20.0,
        WhiteList = false,
        WhiteListGang = false,
        WhiteListJob = { "police", "sheriff", "mechanic", },
        WhiteListGangName = { "ballas", "vagos", },
    },
    -- 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: ",
    ["already_crafting"] = "You are already crafting an item.",
    ["invalid_location"] = "You are not at a valid crafting station.",
    ["ready_to_collect"] = "Your crafting is complete. Collect it at the station.",
    ["nothing_to_collect"] = "There is nothing ready to collect.",
    ["session_restored"] = "Your crafting session has been restored.",
}

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", Label = "Metalscrap", Amount = 30 },
            { Item = "steel", Label = "Steel", Amount = 15 },
            { Item = "rubber", Label = "Rubber", Amount = 15 },
            { Item = "plastic", Label = "Plastic", Amount = 15 },
            { Item = "iron", Label = "Iron", Amount = 15 },
            { Item = "electronickit", Label = "Electronickit", Amount = 15 },
            { Item = "cryptostick", Label = "Cryptostick", Amount = 15 },
            { Item = "copper", Label = "Copper", Amount = 30 },
            { Item = "lockpick", Label = "Lockpick", Amount = 15 },
            { Item = "aluminum", Label = "Aluminum", Amount = 15 },
            { Item = "glass", Label = "Glass", Amount = 15 },
        }
    },
    [2] = {
        Label = "Pistol",
        CraftingItem = "weapon_pistol", Amount = 1,
        Duration = 2*10000,
        RequiredItems = {
            { Item = "metalscrap", Label = "Metalscrap", Amount = 30 },
            -- { Item = "steel", Label = "Steel", Amount = 15 },
            -- { Item = "rubber", Label = "Rubber", Amount = 15 },
        }
    },
    [3] = {
        Label = "AP Pistol",
        CraftingItem = "weapon_appistol", Amount = 1,
        Duration = 2*10000,
        RequiredItems = {
            { Item = "metalscrap", Label = "Metalscrap", Amount = 30 },
            { Item = "steel", Label = "Steel", Amount = 15 },
            { Item = "rubber", Label = "Rubber", Amount = 15 },
            { Item = "plastic", Label = "Plastic", Amount = 15 },
            { Item = "iron", Label = "Iron", Amount = 15 },
            { Item = "electronickit", Label = "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", Label = "Metalscrap", Amount = 10 },
            { Item = "plastic", Label = "Plastic", Amount = 5 }
        }
    },
    [2] = {
        Label = "SMG Ammo",
        CraftingItem = "smg_ammo", Amount = 10,
        Duration = 2*10000,
        RequiredItems = {
            { Item = "metalscrap", Label = "Metalscrap", Amount = 10 },
            { Item = "plastic", Label = "Plastic", Amount = 5 }
        }
    },
    [3] = {
        Label = "Shotgun Ammo",
        CraftingItem = "shotgun_ammo", Amount = 5,
        Duration = 2*10000,
        RequiredItems = {
            { Item = "metalscrap", Label = "Metalscrap", Amount = 10 },
            { Item = "plastic", Label = "Plastic", Amount = 5 }
        }
    },
    -- Add more extra items here
}

Last updated