# Configuration

## ⚙️ Configuration

All settings are in shared/config.lua

### Framework Settings

```
  Config.Framework = 'qb'     -- 'qb' or 'esx'
  Config.Inventory = 'ox'     -- 'ox', 'qb', or 'esx'
  Config.NotifyType = 'ox'    -- 'ox', 'qb', or 'esx'
  Config.ProgressType = 'ox'  -- 'ox' or 'qb'
  Config.SkillCheckType = 'ox'
  Config.MoneyAccount = 'cash'
  Config.Locale = 'en'        -- 'en' or 'tr'
```

<br>

### Mining Areas

You can add unlimited mining areas:

```
  Config.MiningAreas = {
      {
          label = "Quarry Mine",
          coords = vector3(2950.15, 2785.85, 41.5),
          radius = 100.0,
          blip = {
              enabled = true,
              sprite = 618,
              color = 5,
              scale = 0.8
          },
          rocks = 25,
          minDistance = 5.0,
          rareBonus = 5
      },
  }

  label: Name shown on notifications
  coords: Center of mining area
  radius: How far rocks will spawn
  rocks: Number of rocks to spawn
  minDistance: Minimum distance between rocks
  rareBonus: Extra rare ore chance percentage
```

### Mining Tools

```
  Config.Tools = {
      {
          item = 'pickaxe',
          label = 'Basic Pickaxe',
          duration = 8000,
          skillCheck = {'easy', 'easy'},
          bonusChance = 0,
          breakChance = 5
      },
  }

  item: Item name in inventory
  duration: Mining time in milliseconds
  skillCheck: Difficulty levels
  bonusChance: Extra rare ore percentage
  breakChance: Tool break percentage
```

### Ore Types

```
  Config.Ores = {
      {
          item = 'iron_ore',
          label = 'Iron Ore',
          chance = 60,
          minAmount = 1,
          maxAmount = 3
      },
  }

  chance: Drop percentage (all chances should total 100)
  minAmount/maxAmount: Random amount range
```

### Processing Recipes

```
  Config.ProcessingRecipes = {
      {
          input = 'iron_ore',
          inputAmount = 5,
          output = 'iron_bar',
          outputAmount = 1,
          duration = 5000
      },
  }
```

### Sell Prices

```
  Config.SellPrices = {
      ['iron_bar'] = {min = 50, max = 80},
      ['gold_bar'] = {min = 200, max = 300},
  }

  Prices are random between min and max.
  Dynamic pricing adds +10% during peak hours (14:00-22:00).
  Bulk bonus: 25+ items = +5%, 50+ = +10%, 100+ = +15%.
```

### Pickaxe Shop

```
  Config.PickaxeShop = {
      label = "Pickaxe Shop",
      coords = vector3(1089.15, -2008.69, 35.24),
      ped = {
          model = 's_m_y_construct_01',
          coords = vector4(1089.15, -2008.69, 34.24, 90.0)
      },
      blip = {
          enabled = true,
          sprite = 140,
          color = 3,
          scale = 0.7
      }
  }

  Config.PickaxePrices = {
      {
          item = 'pickaxe',
          label = 'Basic Pickaxe',
          price = 500,
          description = 'A basic mining tool',
          icon = 'hammer'
      },
  }
```

### XP and Leveling

```
  Config.EnableXP = true
  Config.XPPerOre = 5
  Config.MaxLevel = 50
  Config.LevelUpXP = function(level)
      return 100 * level
  end

  Every level requires more XP.
  Level 1 = 100 XP
  Level 10 = 1000 XP
  Level 50 = 5000 XP
```

### Rock Respawn

```

  Config.RockRespawnTime = 60000  -- milliseconds

  60000 = 1 minute
  120000 = 2 minutes
  300000 = 5 minutes
```

### Webhook

```

  Config.Webhook = "YOUR_DISCORD_WEBHOOK_URL"
  Config.WebhookColor = 3447003
  Config.WebhookFooter = "Mining System"

  Leave empty to disable:
  Config.Webhook = ""
```

### Animation and Prop

```

  Config.MiningAnim = {
      dict = 'melee@large_wpn@streamed_core',
      anim = 'ground_attack_on_spot',
      flag = 1
  }

  Config.PickaxeProp = 'w_me_hatchet'
  Config.PickaxeBone = 57005
  Config.PickaxeOffset = vector3(0.05, -0.05, -0.03)
  Config.PickaxeRotation = vector3(-10.0, -80.0, 10.0)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://elena-scripts.gitbook.io/elenascripts/jobs-and-activities/mining-job/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
