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
}

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

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 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

The second part is the drug list

list = {"weed_pooch_hq", "meth_pooch", "coca_pooch" },

And finally the "reward", which is simply the name of your money item.

reward = "black_money"

Lang

Last updated