Skip to content

Configuration

Main config structure and the settings most servers change

The main configuration file is 0r-farming-v2/config.lua.

Main Settings You Will Usually Change#

FieldWhat it controls
Config.InventoryImagesFolderFolder path used for item images
Config.FarmingMenu.openWithCommandOpen menu with command
Config.FarmingMenu.openWithKeyOpen menu with keybind
Config.FarmingMenu.openWithItemOpen menu with an item
Config.FarmingMenu.allowedJobsRestrict menu access to specific jobs
Config.LevelsExperience requirements for each level
Config.InfoBoxAlignTask info box alignment
Config.ToggleInfoBoxKeyToggle extra task information
Config.CleanMoneyClean money handling
Config.SellNpcNPC model, blip, and sell locations
Config.HelpTextIn-menu help entries
Config.DisableCustomPropsDisable custom props at farming locations
Config.DisableCustomMarkersDisable custom markers at farming locations
Config.debugDebug mode

Farming Menu Access#

Config.FarmingMenu supports 3 ways to open the menu:

  • Command
  • Keybind
  • Item

Most servers keep only one or two enabled.

Example Menu Configuration#

lua
Config.FarmingMenu = {
    openWithCommand = {
        active = true,
        command = "farmingmenu",
    },
    openWithKey = {
        active = true,
        key = "F7",
    },
    openWithItem = {
        active = true,
        itemName = "farming_tablet",
    },
    allowedJobs = {},
}

Levels and Progression#

The script uses a level table:

lua
Config.Levels = { 0, 1000, 2000, 4000, 8000, 10000, 15000 }

You can rebalance progression by changing these values.

Money and Sell NPC#

The Config.CleanMoney section controls whether rewards are given as an item or account money.

The Config.SellNpc section controls:

  • NPC model
  • Blip settings
  • Sell locations

The script also has a separate market config here:

lua
core/market/config.lua

This file controls market buy/sell entries, prices, sell prices, labels, descriptions, and level requirements for each farming item.

Help Text#

The built-in help entries shown in the farming menu are configured inside Config.HelpText. You can edit or remove these entries to match your server.

Personal Challenges and Multiplayer Tasks#

The gameplay system is split into clear config areas:

  • core/personal_challenges/config.lua
  • core/multiplayer_tasks/freelance/config.lua
  • core/multiplayer_tasks/livestock_farming/config.lua
  • core/multiplayer_tasks/melon_pumpkin/config.lua

That means you can rebalance challenge goals, rewards, and task behavior without changing the main menu config.

Localization#

This resource uses locale files in the locales/ folder. The original docs reference the standard ox_lib locale flow:

cfg
set ox:locale "en"

If you want another language, create a matching locale file using the same structure as the default locale.