# Configuration instructions

{% code title="/srag-farming/config.lua" lineNumbers="true" %}

```lua
------------>SRAG<--------------
----->https://discord.gg/EKyPk4QbgD<-----
Config = {}

Config.Language = "de" --- Available in German and English.

Config.Locale = {
    de = {
        helpText = "DrÃ¼cke ~INPUT_CONTEXT~ um zu farmen",
        success = "~g~Erfolg!~s~ Du hast %sx %s geerntet.",
        failure = "~r~Fehlgeschlagen!~s~ Du hast beim Ernten versagt.",
    },

    en = {
        helpText = "Press ~INPUT_CONTEXT~ to farm",
        success = "~g~Success!~s~ You harvested %sx %s.",
        failure = "~r~Failed!~s~ You failed to harvest.",
    }
}

Config.Farms = {
    weed = {
        label = "Weed Farm", --- The Name of the Blip
        --- helpText = "Press ~INPUT_CONTEXT~ to farm tomatos.", --- Use it to get custom helpText.
        difficulty = "easy", --- Difficult (easy, middle, hard)
        requireItem = false, --- Do you need an item to harvest? (true/false)
        requiredItemName = "itemxyz", --- Item name of the required item
    	  requiredItemLabel = "itemxyz", --- Item label of the required item
        items = {
            { name = "tomato", label = "Tomato", chance = 90, amount = {min = 1, max = 2} } --- Add a comma here for more items. 
        },
        blip = {
            show = true, --- On/Off Blip
            sprite = 140, --- Blip Number
            color = 2, --- Blip Color
            scale = 0.8 --- Blip Scale
        },
        marker = {
            type = 1, --- Marker Type
            scale = vector3(1.5, 1.5, 0.5), --- Marker Scale
            color = {r = 0, g = 255, b = 0, a = 100} --- Marker Color (rgba)
        },
        animation = {
            dict = "amb@world_human_gardener_plant@male@idle_a",
            name = "idle_a",
            flag = 49
        },
        disableAfterHarvest = true, --- Should the point temporarily disappear after a successful harvest?
        locations = {
            vec3(2224.56, 5577.91, 53.84),
            vec3(2230.12, 5580.34, 53.84),
            vec3(2215.78, 5575.00, 53.84)
        }
    } --- Put a comma there when you need a second farming point.
}
```

{% endcode %}

{% hint style="info" %}
Here you can find the important website for the config.\
\
\- [Blips](https://docs.fivem.net/docs/game-references/blips)\
\- [Markers](https://docs.fivem.net/docs/game-references/markers)\
\- [Animations](https://www.gtahash.ru/animations/?page=41)
{% endhint %}
