Config

Config                            = {}

Config.Distance = 2.0

Config.jobNotify = {
    name = 'police',
    count = 1
}
Config.Money = 'black_money'

Config.cityCenter = {
    Zone = vector3(0.0, -500.0, 100.0), --set cityCenter to false to disable
    Radius = 1500.0, --set radius zone
}

Config.Percentage = {
    Reject = 20, -- Pourcentage de chance de rejet (20% par exemple)
    Attack = 35, -- Pourcentage de chance d'attaque (10% par exemple)
    CallPolice = 55 -- Pourcentage de chance d'appeler la police (5% par exemple)
}

Config.BlackListPed = {
    'a_f_y_business_01',
    'a_m_y_indian_01'
}

Config.MaxAmountSelling = 10

Config.Menu = {
    {label = 'Vendre de la weed', icon = "fa-solid fa-cannabis", item = 'weed', priceMin = 100, priceMax = 200, illegal = true}, --if d'ont have item, you can't target
    {label = 'Vendre de la coke', icon = "fa-solid fa-grip-lines", item = 'coke', priceMin = 150, priceMax = 250, illegal = true},
    {label = 'Vendre de la meth', icon = "fa-solid fa-capsules", item = 'meth', priceMin = 300, priceMax = 350, illegal = true},
}

Config.CallPolice = false --set true to use Config.CallCopsNotification
Config.CallCopsNotification = function(source, coords, streetLabel)
    --print(coords, streetLabel) -- to understand the information received
end

Config.Notify = function(key, source, ...)
    local service = IsDuplicityVersion()
    if ... then
         Config.Notifications[key].description = (Config.Notifications[key].description):format(...)
    end
    lib.notify(service and source or Config.Notifications[key], service and Config.Notifications[key])
end

Last updated