Config File

```lua
DRZ = {}

DRZ.Debug = false -- Better if it´s set on FALSE
DRZ.Electron = false -- If you are using ELECTRON_ANTICHEAT this will automatically ban player
DRZ.Language = 'en' -- 'cs', 'en', 'fr', 'de', 'pl'
DRZ.Webhook = "YOUR_WEBHOOK_URL"
DRZ.AntiSpamDuration = 3 -- Minimum seconds after the same event can be triggered
DRZ.MaxAmoutToGive = 10 -- Maximum amount to give on one way (cheater protection)

DRZ.Animals = { -- Set up the lootable animals
    { model = "a_c_deer",       meatItem = "deer_meat",          min = 1, max = 5, label = "Deer meat" },
    { model = "a_c_boar",       meatItem = "boar_meat",          min = 1, max = 5, label = "Boar meat" },
    { model = "a_c_coyote",     meatItem = "coyote_meat",        min = 1, max = 3, label = "Coyoute meat" },
    { model = "a_c_mtlion",     meatItem = "mountain_lion_meat", min = 1, max = 4, label = "Lion meat" },
    { model = "a_c_rabbit_01",  meatItem = "rabbit_meat",        min = 1, max = 2, label = "Rabbit meat" },
}

DRZ.AllowedKnifes = { -- Allowed knifes
    "WEAPON_KNIFE",
    "WEAPON_DAGGER",
    ---ADD MORE
}

DRZ.LootAnimalDuration = 10000 -- Progress bar duration (ms)

DRZ.BloodParticle = true -- Blood particle
DRZ.BloodParticleDict = "core"
DRZ.BloodParticleName = "blood_stab"

DRZ.Blips = { -- Blips for hunting zones
    {
        id = "hunting_1",
        coords = vector3(-522.3115, 4996.8228, 134.9187),
        sprite = 141,
        display = 4,
        scale = 0.9,
        color = 2,
        alpha = 255,
        shortRange = true,
        name = "Hunting zone",
        radius = 300.0,
        radiusBlipColor = 2,
        radiusBlipAlpha = 80
    },
}

DRZ.Shop = { -- Sell items from hunting
    pedModel = "s_m_m_ammucountry",
    coords   = vector3(-679.0945, 5834.4219, 17.3313),
    heading  = 138.0,
    blip = true, 
    blipData = {
        sprite = 52,
        display = 4,
        scale = 0.8,
        color = 2,
        shortRange = false,
        name = "Hunting shop",
    },
    items = {
        sell = {
            { item = "deer_meat",          label = "Deer meat",          price = 150 },
            { item = "boar_meat",          label = "Boar meat",         price = 130 },
            { item = "coyote_meat",        label = "Coyote meat",          price = 120 },
            { item = "mountain_lion_meat", label = "Lion meat",             price = 200 },
            { item = "rabbit_meat",        label = "Rabbit meat",         price = 80 },
            { item = "rare_trophy",        label = "Rare trophy",        price = 1500 },
        }
    }
}

DRZ.RareItem = {
    enabled = true,
    chance  = 5,
    item    = "rare_trophy",
    count   = 1
}


function sendNotify(title, msg, type)
    lib.notify({
        title = title,
        description = msg,
        type = type
    })
end

function sendNotifyServer(src, title, msg, type)
    TriggerClientEvent('ox_lib:notify', src, {
        type = type,
        title = title,
        description = msg
    })
end

function banSystem(src, description, reason)
    if DRZ.Electron then
        exports["ElectronAC"]:banPlayer(src, description, reason, true)
    else
        DropPlayer(src, description)
    end
end
```

Last updated