Configuration

Config = {}

Config.Framework = "auto" -- auto, qb, esx, qbx

-- Language setting
--[[
    English: en
    Turkish: tr
    You can add your own language by going to locales/locales.lua and adding a new language.
]]--
Config.DefaultLanguage = "en" -- Available options: "en", "tr"

Config.Settings = {
    SellingCommand = 'drugs',
    StatsCommand = 'drugstats',
    RequiredCops = 0,
    EnableBlips = true,
    EnableNotifications = true,
    EnableSoundEffects = true,
}

Config.Police = {
    AlertFeedback = false,
    AlertChance = 80,
    NotificationSystem = 'custom', -- 'ps-dispatch', 'cd_dispatch', veya 'custom'
    AlertCooldown = 300, -- seconds
}

Config.PoliceAlert = function(coords, drugType)
    if Config.Police.NotificationSystem == 'ps-dispatch' then
        exports["ps-dispatch"]:DrugSale({
            coords = coords,
            drugType = drugType
        })
    elseif Config.Police.NotificationSystem == 'cd_dispatch' then
        local data = {
            title = "Suspicious Drug Dealing",
            coords = coords,
            description = "Citizen Tip: Suspicious drug dealing"
        }
        TriggerServerEvent('cd_dispatch:AddNotification', data)
    end
end

Config.Animations = {
    Enabled = true,
    Seller = {
        dict = "mp_common",
        anim = "givetake1_a",
        flag = 8,
        duration = 0,
    },
    Buyer = {
        dict = "mp_common",
        anim = "givetake1_a",
        flag = 8,
        duration = 0,
    },
}

Config.NPCBehavior = {
    PedRobCornerDrugs = false,
    InteractionDistance = 2.0,
    ContactTime = 5,
    WalkAwayDistance = 15.0,
    ChanceToRob = 15, -- percentage
    ChanceToReject = 25, -- percentage
    RobberyTimeout = 10, -- second
    BonusChance = 15,
}

Config.Drugs = {
    ['ecstasy'] = {
        name = 'ecstasy',
        label = 'Ecstasy',
        minPrice = 2000,
        maxPrice = 2500,
        successRate = 85,
        riskFactor = 'high'
    },
    ['weed'] = {
        name = 'weed',
        label = 'Marijuana',
        minPrice = 1500,
        maxPrice = 2000,
        successRate = 90,
        riskFactor = 'medium'
    },
    ['cocaine'] = {
        name = 'cocaine',
        label = 'Cocaine',
        minPrice = 3000,
        maxPrice = 3500,
        successRate = 75,
        riskFactor = 'very_high'
    },
    ['meth'] = {
        name = 'meth',
        label = 'Methamphetamine',
        minPrice = 2500,
        maxPrice = 3000,
        successRate = 80,
        riskFactor = 'high'
    },
}

Config.Zones = {
    BlacklistedAreas = {
        {coords = vector3(441.8, -982.8, 30.69), radius = 50.0}, -- Police station
        {coords = vector3(298.5, -584.0, 43.26), radius = 50.0}, -- Hospital
    },
    PreferredAreas = {
        {coords = vector3(-1388.9, -586.7, 30.2), radius = 100.0, bonus = 1.2}, -- Santa Monica
        {coords = vector3(2015.4, 4987.08, 42.1), radius = 100.0, bonus = 1.3}, -- Grapeseed
    }
}

Config.Rewards = {
    ExperiencePoints = true,
    ReputationSystem = true,
    BonusMultiplier = {
        night = 1.2, -- Bonus for night sales
        rain = 1.1, -- Bonus in rainy weather
        highRisk = 1.3, -- Bonus in high risk areas
    }
}

Config.Dialogues = {
    [1] = {
        Customer = {
            'Hey, do you have a minute?',
            'Hi, can we talk?',
            'Can I take a bit of your time?',
            'Hello, can you help me?',
            'Excuse me, do you have a second?',
            'I need a quick word with you.',
            'Got a moment to chat?',
            'Hey, I could use some help here.',
        },
        Seller = {
            Accept = {
                'Yes, how can I help you?',
                'Of course, what do you need?',
                'I’m listening.',
                'Maybe I can help.',
                'Tell me what’s on your mind.',
                'Sure, what’s up?',
                'Go ahead, I’m all ears.',
            },
            Decline = {
                'Sorry, I’m in a hurry.',
                'Maybe another time.',
                'I’m not available right now.',
                'You asked the wrong person.',
                'Now is not a good time.',
                'I don’t think I can help you.',
            }
        }
    },
    [2] = {
        Customer = {
            'What do you have for me?',
            'Show me what you got.',
            'Do you have anything for me?',
            'Got something interesting?',
        },
        Seller = {
            Accept = {
                'I have a little: ',
                'I can offer you: ',
                'I own: ',
                'Here’s what I’ve got: ',
                'You might like this: ',
                'Take a look at this: ',
            },
            Decline = {
                'No worries, have a good day.',
                'Sorry, I must have found the wrong person.',
                'Looks like I have nothing for you right now.',
                'Not today, maybe next time.',
            }
        }
    },
    [3] = {
        Customer = {
            'Looks good to me. Deliver it.',
            'Alright, let me see the goods.',
            'I’ll take it, hand it over.',
            'This works for me, let’s do it.',
        },
        Seller = {
            Accept = {
                'Alright, here you go.',
                'Let’s do this.',
                'It’s all yours now.',
                'There you have it.',
            },
            Decline = {
                'I changed my mind.',
                'I’m not sure about this anymore.',
                'Let’s not do this after all.',
            }
        }
    },
    [4] = {
        Customer = {
            'No, that’s too much for me.',
            'I can’t afford that.',
            'That price is too high.',
            'Sorry, I don’t have that much.',
        },
        Seller = {
            'I can’t go any lower. Goodbye.',
            'Sorry, I can’t lower the price.',
            'That’s my final price.',
            'No discounts, take it or leave it.',
        }
    }
}

Last updated