[PAID] [ESX] Nunu-Drugsystem

Skærmbillede 2023-07-25 005852

DRUG SYSTEM | Drug Sale

  • Uses ox-target.
  • Detects drugs in inventory
  • Sell drugs to NPC’s
  • Chance of NPC physically calling cops on failed drug-sale; beat down NPC to prevent cops alert!
  • Set required cops to sell and cops online multiplier bonus on drug sales.
  • Blacklist certain PED models from the drug-selling.
  • Runs low MS

Buy
Tebex
Discord

Preview
Youtube

| Code is accessible | No |
| Subscription-based | Yes |
| Lines (approximately) | 300 |
| Requirements | ox_lib, ox_target |
| Support | Yes/ |

Maybe add a menu that allows players to edit prices of drug sales, and quantities.

Id definitely use a better target/key bind option.

This can be done in the config file.


Config = {
    ToggleKeybind = true, -- Set to false if you don't want a keybind to toggle the drug dealing
    Keybind = 56, -- Keybind for toggling drug dealing (https://docs.fivem.net/docs/game-references/controls/)
    TimeToKillPEDBeforePoliceNotify = 10, -- Time in seconds to kill the ped before the police are notified
    MaxDrugsToSell = 8, -- Max amount of drugs to sell at once
    CanSellAgain = 5, -- PEDS to sell to before you can sell to the same PED again
    drugs = {
        coke = {
            item = "coke",
            minPrice = 100,
            maxPrice = 200,
        },
        meth = {
            item = "meth",
            minPrice = 100,
            maxPrice = 200,
        },
        weed = {
            item = "weed",
            minPrice = 100,
            maxPrice = 200,
        },
    },

    -- Different chances for selling to a ped in %
    Chance = {
        Sellchance = 60,
        Policechance = 20,
        DenyChance = 20,
    },

    BlacklistedPEDS = {
        "s_m_y_cop_01",
        "s_m_m_doctor_01",
        "s_m_y_dealer_01",
        "mp_m_shopkeep_01",
    },

Wonderful, nice and simple I like.

1 Like