> For the complete documentation index, see [llms.txt](https://moon-scripts-3.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moon-scripts-3.gitbook.io/docs/ms_farming/configuration.md).

# Configuration

### cl\_config.lua:

```lua
MS = {}

MS.esx = {
    prefix = "esx",
    sharedObject = {
        event = "esx:getSharedObject",
        export = {
            use = true,
            get = function()
                return exports["es_extended"]:getSharedObject()
            end
        }
    }
}

MS.Locale = 'de' -- 'de' or 'en'

MS.loopFarming = true

-- Item-Bilder: nui://inventory/images/<item>.png
MS.itemImagePath = "nui://vv_images/items/"
MS.itemImageExt = ".png"

MS.disabledControlActions = {
    38, 22, 37, 44, 45, 140, 263, 288, 289, 170
}


function Notify(msg)
    ESX.ShowNotification(msg)
end

function Announce(msg)
    ESX.ShowNotification(msg, 'info', 8000)
end

function HelpNotify(msg, key)
    if key then
        ESX.ShowHelpNotification(msg .. " [" .. key .. "]")
    else
        ESX.ShowHelpNotification(msg)
    end
end

function Progress(text, ms)
    ESX.Progressbar(text, ms, {
        FreezePlayer = false,
        canCancel = true,
        disable = {
            move = false,
            car = false,
            combat = false,
            mouse = false
        }
    })
end
```

### sv\_config.lua:

```lua
MS_S = {}

-- check verkauf_config.lua, to enable for each zone
MS_S.marktplatz = true

-- checks if the player is near the farming zone
-- can use some server performance, when farming is used a lot
MS_S.checkDistance = true

-- disable security checks, if you have problems with it
MS_S.disableSecurityChecks = false

-- dimension settings
MS_S.checkPlayerDimensions = true
MS_S.defaultDimension = 0

MS_S.farmingBoostEnabled = true

MS_S.farmingBoost = {
    {
        from = 19,
        to = 20,
        multiplier = 2,
    },
}

MS_S.discord = {
    enabled = false,
    servername = "moon-scripts.io",
    url = "https://moon-scripts.io/",
    icon = "",
    color = "3447003",
    username = "MS - Farming"
}

MS_S.webhooks = {
    farmer = "YOUR-DISCORD-WEBHOOK-URL",
    verarbeiter = "YOUR-DISCORD-WEBHOOK-URL",
    verkauf = "YOUR-DISCORD-WEBHOOK-URL",
    marktpreis = "YOUR-DISCORD-WEBHOOK-URL"
}
```
