Config File

The script is highly customizable, giving you full control over its functionality and behavior. Below is a list of the configuration files provided with the resource.

chevron-rightshared/config.luahashtag
Config = {}

Config.Items = {=
    { item = "weedplant_packedweed", from = 50, to = 200, label = "Marihuana", description = "Naturalna suszona roślina, idealna na relaks i odprężenie po ciężkim dniu." },
    -- add more if you want
}

Config.Others = {
    MaxSellAmount = 5,
    RequiredPolice = 1,
    PoliceJobName = "police",
    Chance = 50, -- Percentages on drug sales
    AllowedSalesTime = {
        isActive = true,
        Time = {
            From = 0,
            To = 23,
        },
    }
}

Config.Trust = {
    AddTrust = 0.20, -- Number of percentages added after sale
    RemoveTrust = 0.10 -- Amount of interest taken after sale
}

Config.BlacklistedPeds = {
-- Here, you can add many peds which you can find at https://docs.fivem.net/docs/game-references/ped-models/
    "a_c_boar",
    "a_c_cat_01",
    "a_c_chickenhawk",
    "a_c_chimp",
    "a_c_chop",
    "a_c_cormorant",
    "a_c_cow",
    "a_c_coyote",
    "a_c_crow",
    "a_c_deer",
    "a_c_dolphin",
    "a_c_fish",
    "a_c_hen",
    "a_c_humpback",
    "a_c_husky",
    "a_c_killerwhale",
    "a_c_mtlion",
    "a_c_pig",
    "a_c_pigeon",
    "a_c_poodle",
    "a_c_pug",
    "a_c_rabbit_01",
    "a_c_rat",
    "a_c_retriever",
    "a_c_rhesus",
    "a_c_rottweiler",
    "a_c_seagull",
    "a_c_sharkhammer",
    "a_c_sharktiger",
    "a_c_shepherd",
    "a_c_stingray",
    "a_c_westy",
    "mp_m_shopkeep_01",
}

Config.Notify = {
    DontHaveItem = {
        title = "Error!",
        description = "Nie posiadasz żadnych przedmiotów, które możesz sprzedać.",
        type = "warning",
        duration = 5000
    },
    FailedSold = {
        title = "Error!",
        description =
        "Nie udalo ci sie sprzedać! Osoba zadzwoniła na policję, oznacza to że twoja reputacja spada! Mniejsza lojalność oznacza mniejsze zyski",
        type = "warning",
        duration = 5000
    },
    Success = {
        title = "Success!",
        description =
        "Udało ci się sprzedać narkotyk! Zdobywasz coraz większe zaufanie! Twoje zarobki będą rosły wraz z reputacją.",
        type = "success",
        duration = 5000
    },
    OfferedToNPC = {
        title = "Error!",
        description = "Już próbowałeś bądź sprzedałeś temu npc!",
        type = "warning",
        duration = 5000
    },
    SalesNotAllowedDuringHours = {
        title = "Error!",
        description = "Sprzedaż jest niedozwolona o tej godzinie!",
        type = "warning",
        duration = 5000
    },
    NoPolice = {
        title = "Error!",
        description = "Brak policji na mieście!",
        type = "warning",
        duration = 5000
    },
}

Config.ContextMenu = {
    Title = "Twoje narkotyki",
    Icon = "cannabis",
    Data = {
        LabelFrom = "Zarobek od",
        LabelTo = "Zarobek do",
    },
}

Config.ProgressBar = {
    Duration = 5000,
    Label = "Trwa sprzedawanie...",
}

Config.Target = {
    Icon = 'fa-solid fa-comments',
    Label = 'Porozmawiaj',
    Distance = 2.5,
}

Last updated