Configuration

View the default configuration for the script!

config/config.lua:

Config = {}

-- Framework & Integrations
Config.Debug = true
Config.AutoRunSQL = true -- whether to automatically run the SQL commands to create the tables.
Config.Framework = "auto" -- types: auto, standalone, esx, qbcore, qbox
Config.Notifications = "auto" -- types: auto, ox_lib, ps-ui, okokNotify
Config.Inventory = "auto" -- types: auto, ox_inventory, qb-inventory, qs-inventory
Config.ImagePath = "auto" -- types: auto, or a custom path
Config.Locale = "en" -- locale to use for the resource ( en, es, fr or make your own in locales/your_locale.json)
Config.Color = "255, 147, 30"

Config.Reward = "black_money"

-- Command configuration
Config.Command = {
    Enabled = true,
    Commands = {"selldrugs", "dealer"}, -- add as many commands as you want
}

-- Interact configuration
Config.Interact = {
    Key = { enabled = true, bind = "E", distance = 1.4 },

    -- Target configuration
    -- types: auto, ox_target, qb-target
    Target = { enabled = true, distance = 2.0, target = "auto" },
}

-- Drugs configuration
Config.Drugs = {
    ["meth"] = { label = "Meth", price = {1000, 2000}, count = {1, 3} },
    ["cocaine"] = { label = "Coke", price = {1000, 2000}, count = {1, 3} },
}

-- Drug zones configuration
Config.DrugZones = {
    Enabled = false, -- whether to enable the drug zones ( can only sell in the zones )
    Zones = {
        { label = "DrugZone", coords = vec3(-180.0447, -1601.5387, 34.1616), radius = 100.0, blip = true },
        { label = "DrugZone #2", coords = vec3(490.6857, -1761.6379, 28.5334), radius = 100.0, blip = true },
    },
    -- Blip configuration
    Blip = {
        enabled = true,
        id = 51,
        color = 1,
        scale = 0.8,
        zone = {
            enabled = true,
            color = 1,
            alpha = 150,
        }
    }
}

-- Night mode configuration
Config.NightMode = {
    Enabled = false, -- if enabled players can only sell drugs at night,
    StartTime = 19, -- (19:00) the time to start the night mode ( 0 - 23 )
    EndTime = 4, -- (04:00) the time to end the night mode ( 0 - 23 )
}

-- Slot extension configuration
Config.SlotExtension = {
    -- The slot extension is only needed when you have more then 8 drugs listed in Config.Drugs
    -- However if you want to enable it manually, you can set this to true
    AutomaticallyEnabled = false,
}

-- Multiple drug sale configuration
Config.MultipleDrugSale = {
    Enabled = true, -- whether to enable the multiple drug sale.
    Chance = 15, -- the chance for the customer to buy multiple drugs ( 0 - 100 )
}

-- Alert police configuration
Config.AlertPolice = {
    Enabled = true, -- whether to enable the alert police.
    Chance = 10, -- the chance for the police to be alerted to the player's activity.
    Dispatch = "auto", -- types: auto, none, ps-dispatch, cd_dispatch, tk-dispatch, qs-dispatch, rcore_dispatch, custom ( edit in client/customize.lua )
    Notify = false, -- whether to notify the player when the police are alerted.
}

-- Hustle configuration
Config.Hustle = {
    Enabled = true, -- whether to enable the hustle.
    SuccessChance = 60, -- the base success chance.
    FightChance = 30, -- the chance for the customer to fight the player when the hustle is unsuccessful.
    RelationBonus = 0.5, -- depending on the relation, the success chance will be increased by this amount.
    MaxIncreasePercent = {
        [1] = 10, -- the minimum percentage of the price to increase.
        [2] = 20, -- the maximum percentage of the price to increase.
    },
}

-- Middle finger configuration
Config.MiddleFinger = {
    Enabled = true, -- whether to enable the middle finger.
    FightChance = 60, -- the chance for the customer to fight the player when the middle finger is shown.
}

-- Relationship configuration
Config.RelationShip = {
    Building = {
        onSale = 2, -- +2 when a customer buys from the dealer.
        onDenied = 1, -- -1 when a customer is denied from buying from the dealer.
        onMiddleFinger = 5, -- -5 when a customer is denied from buying from the dealer and the middle finger is shown.
    },
    Status = {
        [0] = "New",
        [2] = "Regular",
    }
}

-- Animation configuration.
Config.Animations = {
    ["phone"] = { enabled = true, scenario = "WORLD_HUMAN_STAND_MOBILE",},
    ["deny"] = { enabled = true, animDict = "gestures@m@standing@casual", animName = "gesture_nod_no_hard",},
    ["hustle"] = { enabled = true, animDict = "anim@arena@celeb@podium@no_prop@", animName = "shrug_off_a_2nd",},
    ["hustle_deny"] = { enabled = true, animDict = "special_ped@andy_moon@monologue_10@monologue_10d", animName = "andy_ig_1_p10_madethemangrypraytoyour401k_3",},
    ["middle_finger"] = { enabled = true, animDict = "anim@mp_player_intselfiethe_bird", animName = "idle_a"},
}

-- Customers configuration
Config.Customers = {
    { name = "Tony Ramirez", gender = "male", age = 38, ped = "a_m_m_indian_01", data = { stats = { addiction = 88, stress = 62, reputee = 54 } } },
    { name = "Ronnie Banks", gender = "male", age = 45, ped = "a_m_m_acult_01", data = { stats = { addiction = 42, stress = 28, reputee = 66 } } },
    { name = "Billy Carter", gender = "male", age = 27, ped = "a_m_y_hipster_01", data = { stats = { addiction = 61, stress = 48, reputee = 47 } } },
    { name = "Jesse Turner", gender = "male", age = 32, ped = "a_m_m_beach_01", data = { stats = { addiction = 29, stress = 21, reputee = 76 } } },
    { name = "Raymond Ortiz", gender = "male", age = 41, ped = "a_m_m_bevhills_01", data = { stats = { addiction = 22, stress = 24, reputee = 71 } } },
    { name = "Marcus Hale", gender = "male", age = 29, ped = "a_m_y_beach_02", data = { stats = { addiction = 76, stress = 67, reputee = 39 } } },
    { name = "Eddie Lewis", gender = "male", age = 52, ped = "a_m_m_afriamer_01", data = { stats = { addiction = 92, stress = 81, reputee = 33 } } },
    { name = "Cody Greene", gender = "male", age = 23, ped = "a_m_y_skater_01", data = { stats = { addiction = 71, stress = 56, reputee = 51 } } },
    { name = "Vince Delgado", gender = "male", age = 36, ped = "a_m_m_soucent_02", data = { stats = { addiction = 64, stress = 46, reputee = 58 } } },
    { name = "Chad Morgan", gender = "male", age = 35, ped = "a_m_y_soucent_01", data = { stats = { addiction = 49, stress = 34, reputee = 57 } } },
    { name = "Tracy Coleman", gender = "female", age = 28, ped = "a_f_m_beach_01", data = { stats = { addiction = 44, stress = 39, reputee = 73 } } },
    { name = "Gloria Flynn", gender = "female", age = 47, ped = "a_f_m_eastsa_01", data = { stats = { addiction = 81, stress = 69, reputee = 32 } } },
    { name = "Sasha Brooks", gender = "female", age = 22, ped = "a_f_y_hipster_01", data = { stats = { addiction = 59, stress = 52, reputee = 64 } } },
    { name = "Jessie Burke", gender = "female", age = 33, ped = "a_f_y_soucent_01", data = { stats = { addiction = 54, stress = 43, reputee = 61 } } },
    { name = "Monica Spencer", gender = "female", age = 39, ped = "a_f_y_vinewood_02", data = { stats = { addiction = 24, stress = 19, reputee = 86 } } },
    { name = "Tammy Sanders", gender = "female", age = 51, ped = "a_f_m_ktown_01", data = { stats = { addiction = 74, stress = 66, reputee = 41 } } },
    { name = "Nina Patel", gender = "female", age = 26, ped = "a_f_y_bevhills_01", data = { stats = { addiction = 31, stress = 26, reputee = 82 } } },
    { name = "Emily Vaughn", gender = "female", age = 31, ped = "a_f_y_soucent_02", data = { stats = { addiction = 51, stress = 44, reputee = 56 } } },
    { name = "Deanna Price", gender = "female", age = 37, ped = "a_f_m_bevhills_01", data = { stats = { addiction = 36, stress = 31, reputee = 74 } } },
    { name = "Paige O’Connor", gender = "female", age = 24, ped = "a_f_y_skater_01", data = { stats = { addiction = 72, stress = 61, reputee = 46 } } },
    { name = "Harold Nixon", gender = "male", age = 57, ped = "a_m_m_prolhost_01", data = { stats = { addiction = 96, stress = 87, reputee = 23 } } },
    { name = "Caleb Boone", gender = "male", age = 30, ped = "a_m_y_vinewood_01", data = { stats = { addiction = 18, stress = 17, reputee = 88 } } },
    { name = "Derek Nash", gender = "male", age = 42, ped = "a_m_m_tramp_01", data = { stats = { addiction = 85, stress = 72, reputee = 29 } } },
    { name = "Freddy Mason", gender = "male", age = 50, ped = "a_m_m_trampbeac_01", data = { stats = { addiction = 89, stress = 83, reputee = 27 } } },
    { name = "Lucas Banks", gender = "male", age = 19, ped = "a_m_y_genstreet_01", data = { stats = { addiction = 67, stress = 58, reputee = 48 } } },
    { name = "Oscar Huang", gender = "male", age = 34, ped = "a_m_m_salton_01", data = { stats = { addiction = 73, stress = 63, reputee = 44 } } },
    { name = "Brandon Pope", gender = "male", age = 28, ped = "a_m_y_vinewood_02", data = { stats = { addiction = 46, stress = 37, reputee = 68 } } },
    { name = "Keith Walker", gender = "male", age = 44, ped = "a_m_m_tranvest_01", data = { stats = { addiction = 58, stress = 49, reputee = 52 } } },
    { name = "Terry Vaughn", gender = "male", age = 55, ped = "a_m_m_tranvest_02", data = { stats = { addiction = 63, stress = 54, reputee = 49 } } },
    { name = "Ricky Sharp", gender = "male", age = 25, ped = "a_m_y_soucent_03", data = { stats = { addiction = 69, stress = 57, reputee = 43 } } },
    { name = "Laura Fields", gender = "female", age = 48, ped = "a_f_m_salton_01", data = { stats = { addiction = 78, stress = 70, reputee = 34 } } },
    { name = "Carmen Ross", gender = "female", age = 30, ped = "a_f_y_beach_02", data = { stats = { addiction = 47, stress = 38, reputee = 69 } } },
    { name = "Bethany Quinn", gender = "female", age = 21, ped = "a_f_y_vinewood_01", data = { stats = { addiction = 62, stress = 55, reputee = 53 } } },
    { name = "Sierra Holt", gender = "female", age = 27, ped = "a_f_y_hipster_02", data = { stats = { addiction = 57, stress = 46, reputee = 59 } } },
    { name = "Regina Pope", gender = "female", age = 54, ped = "a_f_m_prolhost_01", data = { stats = { addiction = 83, stress = 76, reputee = 31 } } },
    { name = "Yolanda Cruz", gender = "female", age = 43, ped = "a_f_m_beach_01", data = { stats = { addiction = 68, stress = 59, reputee = 45 } } },
    { name = "Bianca Watts", gender = "female", age = 29, ped = "a_f_y_hipster_01", data = { stats = { addiction = 53, stress = 41, reputee = 62 } } },
    { name = "Molly Reed", gender = "female", age = 35, ped = "a_f_y_soucent_02", data = { stats = { addiction = 56, stress = 48, reputee = 58 } } },
    { name = "Olivia Sharp", gender = "female", age = 32, ped = "a_f_y_vinewood_02", data = { stats = { addiction = 33, stress = 27, reputee = 84 } } },
    { name = "Tina Bridges", gender = "female", age = 41, ped = "a_f_m_ktown_01", data = { stats = { addiction = 71, stress = 63, reputee = 42 } } },
    { name = "Dwayne McCarthy", gender = "male", age = 60, ped = "a_m_m_rurmeth_01", data = { stats = { addiction = 97, stress = 89, reputee = 21 } } },
    { name = "Earl Jenkins", gender = "male", age = 46, ped = "a_m_m_soucent_01", data = { stats = { addiction = 66, stress = 52, reputee = 50 } } },
    { name = "Bradley Cain", gender = "male", age = 33, ped = "a_m_y_skater_02", data = { stats = { addiction = 52, stress = 44, reputee = 60 } } },
    { name = "Shaun Wallace", gender = "male", age = 29, ped = "a_m_y_genstreet_02", data = { stats = { addiction = 63, stress = 55, reputee = 49 } } },
    { name = "Lee Henderson", gender = "male", age = 38, ped = "a_m_m_beach_02", data = { stats = { addiction = 48, stress = 36, reputee = 70 } } },
    { name = "Wesley Lopez", gender = "male", age = 24, ped = "a_m_y_beach_01", data = { stats = { addiction = 74, stress = 64, reputee = 40 } } },
    { name = "Preston Shaw", gender = "male", age = 40, ped = "a_m_m_soucent_02", data = { stats = { addiction = 55, stress = 47, reputee = 57 } } },
    { name = "Elijah Black", gender = "male", age = 52, ped = "a_m_m_prolhost_01", data = { stats = { addiction = 86, stress = 78, reputee = 28 } } },
    { name = "Gavin Reed", gender = "male", age = 31, ped = "a_m_y_vinewood_03", data = { stats = { addiction = 37, stress = 29, reputee = 79 } } },
    { name = "Corey Knight", gender = "male", age = 26, ped = "a_m_y_skater_01", data = { stats = { addiction = 69, stress = 58, reputee = 46 } } },
    { name = "Alexa Monroe", gender = "female", age = 23, ped = "a_f_y_beach_01", data = { stats = { addiction = 58, stress = 49, reputee = 61 } } },
    { name = "Sandra Park", gender = "female", age = 49, ped = "a_f_m_bevhills_01", data = { stats = { addiction = 34, stress = 23, reputee = 90 } } }
}

-- Effects configuration
Config.Effects = { "Dizzy", "Euphoric", "Paranoid", "Hyper","Focused", "Sedated", "Hallucinating", "Numb", "Adrenaline", "Restless", "Heavy", "Detached", "Calm", "Overstimulated", "Floaty", "Unstable"}

config/config-sv.lua:

Last updated