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
}
circle-info

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

triangle-exclamation
  • 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

circle-exclamation

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


Lang

triangle-exclamation

Last updated