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}
The "check" is a single value, so it's up to you to decide whether you want players to be able to sell in a certain hour, regardless of the number of policemen on duty, or only with a certain number of policemen on duty.
Discord logs
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
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
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.
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!