Configuration

JustDrugs offers highly customizable config

Config = {}

Config.Framework = "detect" -- esx, qbcore, vrp, detect
Config.Inventory = "detect" -- ox_inventory, qs-inventory, ps-inventory, detect, nil ( will set the inventory to framework default ) 
Config.Target = "detect" -- ox_target, qb-target, qtarget, detect, nil ( markers )

Config.TickDuration = 10000
Config.SaveDuration = 60000 -- Saving interval (ms)

Config.TextFont = 4 -- Change font of 3DText

Config.BlackListedAreas = {
   [1] = {coords = vector3(431.9808, -981.7526, 30.7107), radius = 50},
}

Config.Antifreeze = "antifreeze" -- item name

Config.Battery = "battery" -- itam name

Config.DrugLight = "light" -- item name
Config.LightRadius = 5 -- radius of light working

Config.DrierItem = "drier" -- item
Config.DrierFan = "fan" -- item
Config.FanRadius = 5 -- radius of fan working

Config.DrugTable = "table" -- item

Config.CampFire = "campfire" -- item
Config.CoalItem = "coal" -- item
Config.PotItem = "pot" -- item
Config.AcetoneItem = "acetone" -- item

Config.CellphoneItem = "cellphone" -- item

Config.Drugs = {
    Weed = {
        Models = {
            "dl-weed1",
            "dl-weed2",
            "dl-weed3",
        },
        PlantNeeds = {
            IncreasingByGertilizing = 20,
            MinimumWater = 1,
            MinimumFertilizer = 1,
            ItemWatering = "wateringcan",
            IncreasingByWatering = 20,
            ItemFertilizing = "fertilizer",
        },
        Items = {
            actionItem = "weedseed",
            processedItem = "packedweed",
            harvestedItem = "weed",
            phaseProduct = "driedweed",
            mixingItem = "tobacco",
        },
        ProcessingType = "weed", -- ("coke", "weed", "meth")
        Growth = 1,
        Product = {
            Min = 2,
            Max = 6,
        },
        Usable = {
            typeUsing = "smoking", -- ("smoking", "swallowing", "sniffing")
            typeEffect = 1, -- (1-4)
            typeBenefit = "health", -- ("health", "armor", "speed")
            amountBenefit = 50,
            intervalEffect = 5,
        },
        Price = 500,
        Type = "plant", -- ("plant", "machine")
    },

    Meth = {
        Models = {
            "dl-carbox",
            "dl-carbox",
            "dl-carbox",
        },
        MachineNeeds = {
            Ingredients = {
                hydrogen = 0,
                causticsoda = 0,
                muriatic = 0,
            },
        },
        Items = {
            actionItem = "methmachine",
            processedItem = "crystalmeth",
            harvestedItem = "methproduct",
            phaseProduct = "frozenmeth",
            mixingItem = "acetone",
        },
        ProcessingType = "meth", -- ("coke", "weed", "meth")
        Growth = 1,
        Product = {
            Min = 2,
            Max = 6,
        },
        Usable = {
            typeUsing = "swallowing", -- ("smoking", "swallowing", "sniffing")
            typeEffect = 4, -- (1-4)
            typeBenefit = "armor", -- ("health", "armor", "speed")
            amountBenefit = 20,
            intervalEffect = 5,
        },
        Price = 500,
        Type = "machine", -- ("plant", "machine")
    },

    Cocaine = {
        Models = {
            "dl-cocap1",
            "dl-cocap2",
            "dl-cocap3",
        },
        PlantNeeds = {
            IncreasingByGertilizing = 20,
            MinimumWater = 1,
            MinimumFertilizer = 1,
            ItemWatering = "wateringcan",
            IncreasingByWatering = 20,
            ItemFertilizing = "fertilizer",
        },
        Items = {
            actionItem = "cocaseed",
            processedItem = "cocainebag",
            harvestedItem = "cocaleaves",
            phaseProduct = "coke",
            mixingItem = "parazetamol",
        },
        ProcessingType = "coke", -- ("coke", "weed", "meth")
        Growth = 1,
        Product = {
            Min = 2,
            Max = 6,
        },
        Usable = {
            typeUsing = "sniffing", -- ("smoking", "swallowing", "sniffing")
            typeEffect = 2, -- (1-4)
            typeBenefit = "armor", -- ("health", "armor", "speed")
            amountBenefit = 30,
            intervalEffect = 5,
        },
        Price = 500,
        Type = "plant", -- ("plant", "machine")
    },

    Opium = {
        Models = {
            "dl-poppy1",
            "dl-poppy2",
            "dl-poppy3",
        },
        PlantNeeds = {
            IncreasingByGertilizing = 20,
            MinimumWater = 1,
            MinimumFertilizer = 1,
            ItemWatering = "wateringcan",
            IncreasingByWatering = 20,
            ItemFertilizing = "fertilizer",
        },
        Items = {
            actionItem = "opiumseed",
            processedItem = "heroine",
            harvestedItem = "opium",
            phaseProduct = "driedopium",
            mixingItem = "creatine",
        },
        ProcessingType = "weed", -- ("coke", "weed", "meth")
        Growth = 1,
        Product = {
            Min = 2,
            Max = 6,
        },
        Usable = {
            typeUsing = "sniffing", -- ("smoking", "swallowing", "sniffing")
            typeEffect = 2, -- (1-4)
            typeBenefit = "speed", -- ("health", "armor", "speed")
            amountBenefit = 30,
            intervalEffect = 10,
        },
        Price = 500,
        Type  = "plant", -- ("plant", "machine")
    },
}

Config.Shop = {
    [1] = { 
        blip = true,
        blipText = "Drug Shop",
        blipType = 469,
        blipColor = 2,
        markerType = 29,
        markerCoords = vector3(-1171.8479, -1572.1942, 4.6636), -- if you dont use target system
        targetCoords = vector3(-1171.4032, -1571.6211, 4.4338),   -- if you are using target system
        Items = {
            { id = 1, name = "weedseed", label = "Weed Seed", price = 0, image = "images/weedseed.webp"},
            { id = 2, name = "cocaseed", label = "Coca Seed", price = 0, image = "images/cocaseed.webp"},
            { id = 3, name = "methmachine", label = "Meth Machine", price = 0, image = "images/methmachine.webp"},
            { id = 4, name = "opiumseed", label = "Opium Seed", price = 0, image = "images/opiumseed.webp"},
            { id = 5, name = "wateringcan", label = "Watering Can", price = 0, image = "images/wateringcan.webp"},
            { id = 6, name = "fertilizer", label = "Fertilizer", price = 0, image = "images/fertilizer.webp"},
            { id = 7, name = "tobacco", label = "Tobacco", price = 0, image = "images/tobacco.webp"},
            { id = 8, name = "acetone", label = "Acetone", price = 0, image = "images/acetone.webp"},
            { id = 9, name = "causticsoda", label = "Caustic Soda", price = 0, image = "images/causticsoda.webp"},
            { id = 10, name = "muriatic", label = "Muriatic Acid", price = 0, image = "images/muriatic.webp"},
            { id = 11, name = "hydrogen", label = "Hydrogen", price = 0, image = "images/hydrogen.webp"},
            { id = 12, name = "parazetamol", label = "Parazetamol", price = 0, image = "images/parazetamol.webp"},
            { id = 13, name = "creatine", label = "Creatine", price = 0, image = "images/creatine.webp"},
            { id = 14, name = "antifreeze", label = "Antifreeze", price = 0, image = "images/antifreeze.webp"},
            { id = 15, name = "battery", label = "Battery", price = 0, image = "images/battery.webp"},
            { id = 16, name = "light", label = "Light", price = 0, image = "images/light.webp"},
            { id = 17, name = "drier", label = "Drier", price = 0, image = "images/drier.webp"},
            { id = 18, name = "fan", label = "Fan", price = 0, image = "images/fan.webp"},
            { id = 19, name = "table", label = "Table", price = 0, image = "images/table.webp"},
            { id = 20, name = "campfire", label = "Campfire", price = 0, image = "images/campfire.webp"},
            { id = 21, name = "coal", label = "Coal", price = 0, image = "images/coal.webp"},
            { id = 22, name = "pot", label = "Pot", price = 0, image = "images/pot.webp"},
            { id = 23, name = "cellphone", label = "Cellphone", price = 0, image = "images/cellphone.webp"},
        },
    },
}

Config.Laboratory = {
    coords = vector3(-328.0836, -2700.7444, 7.5495),
    insideCoords = vector3(-4.65, 9.13, -55.23),
    blip = true,
    blipText = 'Drug Laboratory',
    blipType = 403,
    blipColor = 0,
    markerType = 21,
    processing = { 
        methFrezing = vector3(6.55, 4.24, -58.99),
        methBreakingCoords = vector3(6.2780, 7.9897, -58.9984),
        methBreakingAnimCoords = vector3(3.2780, 6.4897, -59.9984),
        methBreakingAnimRot = vector3(0.0, 0.0, 1.08),
        methPackagingCoords = vector3(3.6895, 7.9735, -58.9984),
        methPackagingAnimCoords = vector3(-0.8895, 6.4735, -59.9984),
        methPackagingAnimRot = vector3(0.0, 0.0, 1.08)
    }
}

Config.CellphoneTick = 60 -- One call in 60 seconds.

Config.Clients = {
    clientScrewUpChance = 10, -- ( attack you to take product from you) calculated in %
    callPolice = 20, -- ( call police to catch you ) calculated in %
    coords = {
        vector4(482.9368, -2017.3466, 22.9624, 320.6083),
        vector4(495.7217, -1340.8479, 28.3122, 350.0700),
        vector4(1044.7280, 191.0845, 79.9905, 64.8990),
        vector4(367.1126, 351.3965, 102.3285, 255.3113),
        vector4(-276.7509, 74.5228, 65.4600, 180.1128),
        vector4(9.5280, -1403.6487, 28.2812, 143.7420),
        vector4(-10.1648, -1827.7383, 26.3879, 139.7979),
        vector4(1193.1062, -1767.3119, 38.4599, 328.0886),
        vector4(-1183.7642, -1774.2546, 3.3413, 308.7582),
        vector4(284.9237, 958.7841, 210.1398, 78.4854),
    },
    pedList = {
        'ig_abigail',
        'csb_abigail',
        'u_m_y_abner',
        'a_m_m_afriamer_01',
        'ig_mp_agent14',
        'csb_mp_agent14',
        'csb_agent',
        's_f_y_airhostess_01',
        's_m_y_airworker',
        'u_m_m_aldinapoli',
        'ig_amandatownley',
        'cs_amandatownley',
        's_m_y_ammucity_01',
        's_m_m_ammucountry',
        'ig_andreas',
        'cs_andreas',
        'csb_anita',
        'u_m_y_antonb',
        'csb_anton',
        'g_m_m_armboss_01',
        'g_m_m_armgoon_01',
        'g_m_y_armgoon_02',
        'g_m_m_armlieut_01',
        'mp_s_m_armoured_01',
        's_m_m_armoured_01',
    }
}

Last updated