Configuration
Framework
Config.Framework = {
framework = "esx", -- esx or qbcore
}Choose between "esx" or "qbcore" it's important to choose your framework.
Utility
Config.utility = {
policeJobs = {"police", "sherif"}, -- all police jobs
check = "Cops", -- ["Timer"] = ignore cops and can sell between hours "hoursToSell" | ["Cops"] = ignore hours and only check cops on duty
maxPerSale = 5, -- max items
distMax = 2.0, -- distance to interact
chanceNegotiate = 2, -- [1] = 100% [2] = 50% [3] = 33% [4] = 25%
chanceCallCops = 4, -- [1] = 100% [2] = 50% [3] = 33% [4] = 25%
chanceToNotSell = 3, -- [1] = 100% [2] = 50% [3] = 33% [4] = 25%
copsToSell = 1, -- cops online required
hoursToSell = {8, 2}, -- timer min and max
drugSaleAnimationTime = 5000, -- animation time to sell
drugSaleProgressText = "Vente de drogue en cours", -- the label
}
Discord logs
Config.Log = {
Enable = true,
BotName = "",
Title = "",
Webhook = "",
Color = 16711680,
}it's not mandatory, but if you want logs, just fill in the configuration.
Drugs
In the drug configuration there are 3 parts, the first is "items" which refers to each of the drugs you wish to sell
["weed_pooch_hq"] = {
title = 'Weed Haute Qualité',
label = "Pochon de weed HQ",
description = 'Vendre de la weed',
icon = 'https://cdn-icons-png.flaticon.com/512/1404/1404434.png',
iconColor = "green",
priceMin = 125,
priceMax = 130,
bonus = 1.10 -- bonus in percent 10% = 1.10 | 30% = 1.30 ect...
},The name between [""] is the item name! if your weed's item name is "weed_pooch" then you put ["weed_pooch"].
The title is what will be displayed first when the menu is opened.
The description is just a description for the drug under the title
Label is used when the notify function is called
There are several possibilities: either you use font-awesome and take a simple icon, or you use flaticon and simply take the image with "inspect element" -> "copy url" or your own images via an online url.

The color of the icon is only relevant if you use font-awesome.
Simply the minimum and maximum that a single drug can sell. Regarding the bonus, it's between 1.0 and 1.99, which corresponds to the percentage, so if you want to give a 10% bonus if the player attempts a negocitation, you'll have to give 1.10.
The second part is the drug list
list = {"weed_pooch_hq", "meth_pooch", "coca_pooch" },Once you've put all the drugs you can sell in "items", you must put each drug in the list to enable the inventory check when you call the function.
And finally the "reward", which is simply the name of your money item.
reward = "black_money"Lang
You can create your own "lang.json" in the "locales" folder but be careful to respect the "%s" which represents values during a notification so if there are 2 "%s" at the time of the translation keep both!
Last updated