Config File
```lua
DRZ = {}
DRZ.Debug = false -- Better if it´s set on FALSE
DRZ.Language = 'en' -- 'en', 'de', 'fr', 'es', 'pt', 'ru', 'pl', 'it', 'nl'
DRZ.Webhook = "YOUR_WEBHOOK_URL"
DRZ.Electron = false -- If you are using ELECTRON_ANTICHEAT this will automatically ban player
DRZ.MinPolice = 1 -- Minimum police to sell
DRZ.PoliceJobs = { -- Police jobs
"police",
"sheriff",
}
DRZ.Zones = { -- Do not rename the tags: mesto, sandy or paleto
mesto = {coords = vector3(-188.3391, -865.7966, 34.0973), radius = 2500.0, multiplier = 1.0, name = "Mesto"}, -- Los Santos
sandy = {coords = vector3(2249.1523, 4301.0498, 1.0000), radius = 950.0, multiplier = 0.83, name = "Sandy"},-- Sandy Shores + Grape Seed
paleto = {coords = vector3(-158.8215, 6368.2690, 1.0000), radius = 800.0, multiplier = 0.64, name = "Paleto"} -- Paleto Bay
} -- Multiplier = price * setNumber (if its 1.0 the price will be *1.0, if its 0.83 the price will be *0.83)
DRZ.Items = {
Weed = {
itemName = "weed_bag", -- Item name
minPrice = 350, -- Minimun price
maxPrice = 440, -- Maximum price
chance = 60 -- Chance to succesful sell
},
Meth = {
itemName = "meth_bag",
minPrice = 620,
maxPrice = 740,
chance = 60
},
Coke = {
itemName = "coke_bag",
minPrice = 530,
maxPrice = 665,
chance = 60
},
Heroin = {
itemName = "heroin_bag",
minPrice = 665,
maxPrice = 845,
chance = 60
}
}
DRZ.SellItemCount = {min = 1, max = 5} -- How many items to sell
DRZ.OfferTime = {min = 3000, max = 4000} -- How long offering
DRZ.SellingTime = {min = 10000, max = 20000} -- How long selling
DRZ.TimeOutTime = {min = 500, max = 1500} -- TimeOut to dispatch after start offering + DRZ.OfferTime
DRZ.DispatchSuccesChance = 40 -- After succesful offer (max 100)
DRZ.DispatchUnsuccedChance = 90 -- After unseccesfull offer (max 100)
DRZ.Dispatch = { -- Dispatch blip setup
sprite = 140,
colour = 3,
scale = 1.0
}
DRZ.Blacklisted = { -- Blacklisted NPC (like NPCs in bank, garage or stores)
"a_m_y_musclbeac_01",
"a_m_m_farmer_01",
"s_f_y_scrubs_01",
"s_m_m_fiboffice_02",
"s_f_y_cop_01",
"csb_cop",
"csb_ramp_marine",
"csb_rashcosvki",
"s_m_y_dealer_01",
"cs_movpremmale",
"u_m_o_taphillbilly",
"s_m_m_gardener_01",
"s_m_y_doorman_01",
"s_m_m_cntrybar_01",
"s_m_m_dockwork_01",
"s_m_m_gaffer_01",
"u_m_m_edtoh",
"a_f_y_business_01",
"mp_m_waremech_01",
"a_m_m_eastsa_01",
"u_m_o_taphillbilly",
"s_m_m_highsec_01",
"s_m_y_dockwork_01",
"g_m_m_korboss_01",
"a_f_y_bevhills_02",
"a_f_y_business_04",
"a_f_y_bevhills_04",
"a_f_y_juggalo_01",
"a_f_y_skater_01",
"mp_m_waremech_01",
"s_m_y_cop_01",
"a_m_m_ktown_01",
"a_m_m_eastsa_02",
"a_m_m_salton_02",
"a_m_m_socenlat_01",
"a_m_y_business_01",
"s_m_y_construct_01",
"csb_customer",
"a_m_y_soucent_02",
"mp_f_cocaine_01",
"cs_paper",
"cs_floyd",
"a_m_m_business_01",
"a_m_m_beach_02",
"s_m_m_doctor_01",
"ig_joeminuteman",
"ig_siemonyetarian",
"u_m_m_bankman",
"ig_barry",
"cs_joeminuteman",
"a_c_deer",
"a_c_boar",
"a_c_coyote",
"a_c_mtlion",
"a_c_rabbit_01",
"a_c_chickenhawk",
"a_c_chimp",
"a_c_chop",
"m_p_freemode_01",
"mp_f_freemode_01",
"a_c_cormorant",
"a_c_cow",
"a_c_crow",
"a_c_fish",
"a_c_hen",
"a_c_husky",
"a_c_pig",
"a_c_pigeon",
"a_c_rat",
"a_c_retriever",
"a_c_rhesus",
"a_c_rottweiler",
"a_c_seagull",
"a_c_sharktiger",
"a_c_shepherd",
"ft-prottweiler",
"a_c_westy",
"Melody_Dallas",
"Melody_Ferit",
"Melody_Majkl",
"Melody_Patto",
"Melody_PattoMAJK",
}
function sellDrugNotify(type, title, msg)
exports.ox_lib:notify({type = type, title = title, description = msg})
end
function sellDrugNotifyServer(type, title, msg)
TriggerClientEvent('ox_lib:notify', source, {type = type, title = title, description = msg})
end
function dispatch()
local data = exports['cd_dispatch']:GetPlayerInfo()
TriggerServerEvent('cd_dispatch:AddNotification', {
job_table = DRZ.PoliceJobs,
coords = data.coords,
title = "10-14 Prodej drog",
message = data.sex ..' se snaží prodávat drogy na ' .. data.street,
flash = 0,
unique_id = data.unique_id,
sound = 1,
blip = { sprite = DRZ.Dispatch.sprite, scale = DRZ.Dispatch.scale, colour = DRZ.Dispatch.colour, flashes = false, text = LOCALE.Lang[DRZ.Language]['dispatch_title'], time = 5, radius = 0 }
})
end
function banSystem(source, reason, details)
if DRZ.Electron then
exports["ElectronAC"]:banPlayer(source, reason, details, true)
else
--DropPlayer(source, details)
end
end
```Last updated