# Items Setup

### ox\_inventory

```
Add to ox_inventory/data/items.lua:

  ['pickaxe'] = {
      label = 'Basic Pickaxe',
      weight = 1000,
      stack = false,
      close = true,
      description = 'A basic mining tool'
  },

  ['iron_pickaxe'] = {
      label = 'Iron Pickaxe',
      weight = 1200,
      stack = false,
      close = true,
      description = 'An improved mining tool'
  },

  ['diamond_pickaxe'] = {
      label = 'Diamond Pickaxe',
      weight = 1500,
      stack = false,
      close = true,
      description = 'The best mining tool'
  },

  ['iron_ore'] = {
      label = 'Iron Ore',
      weight = 100,
      stack = true,
      close = true,
      description = 'Raw iron ore'
  },

  ['copper_ore'] = {
      label = 'Copper Ore',
      weight = 100,
      stack = true,
      close = true,
      description = 'Raw copper ore'
  },

  ['gold_ore'] = {
      label = 'Gold Ore',
      weight = 150,
      stack = true,
      close = true,
      description = 'Raw gold ore'
  },

  ['diamond_ore'] = {
      label = 'Diamond Ore',
      weight = 200,
      stack = true,
      close = true,
      description = 'Raw diamond ore'
  },

  ['emerald_ore'] = {
      label = 'Emerald Ore',
      weight = 200,
      stack = true,
      close = true,
      description = 'Raw emerald ore'
  },

  ['iron_bar'] = {
      label = 'Iron Bar',
      weight = 500,
      stack = true,
      close = true,
      description = 'Processed iron'
  },

  ['copper_bar'] = {
      label = 'Copper Bar',
      weight = 500,
      stack = true,
      close = true,
      description = 'Processed copper'
  },

  ['gold_bar'] = {
      label = 'Gold Bar',
      weight = 750,
      stack = true,
      close = true,
      description = 'Processed gold'
  },

  ['diamond'] = {
      label = 'Diamond',
      weight = 100,
      stack = true,
      close = true,
      description = 'A polished diamond'
  },

  ['emerald'] = {
      label = 'Emerald',
      weight = 100,
      stack = true,
      close = true,
      description = 'A polished emerald'
  },
```

### qb-inventory

```
Add to qb-core/shared/items.lua:

  ['pickaxe'] = {['name'] = 'pickaxe', ['label'] = 'Basic Pickaxe', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'pickaxe.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = true, ['description'] = 'A basic mining tool'},
  ['iron_pickaxe'] = {['name'] = 'iron_pickaxe', ['label'] = 'Iron Pickaxe', ['weight'] = 1200, ['type'] = 'item', ['image'] = 'iron_pickaxe.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = true, ['description'] = 'An improved mining tool'},
  ['diamond_pickaxe'] = {['name'] = 'diamond_pickaxe', ['label'] = 'Diamond Pickaxe', ['weight'] = 1500, ['type'] = 'item', ['image'] = 'diamond_pickaxe.png', ['unique'] = true, ['useable'] = false, ['shouldClose'] = true, ['description'] = 'The best mining tool'},
  ['iron_ore'] = {['name'] = 'iron_ore', ['label'] = 'Iron Ore', ['weight'] = 100, ['type'] = 'item', ['image'] = 'iron_ore.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['description'] = 'Raw iron ore'},
  ['copper_ore'] = {['name'] = 'copper_ore', ['label'] = 'Copper Ore', ['weight'] = 100, ['type'] = 'item', ['image'] = 'copper_ore.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['description'] = 'Raw copper ore'},
  ['gold_ore'] = {['name'] = 'gold_ore', ['label'] = 'Gold Ore', ['weight'] = 150, ['type'] = 'item', ['image'] = 'gold_ore.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['description'] = 'Raw gold ore'},
  ['diamond_ore'] = {['name'] = 'diamond_ore', ['label'] = 'Diamond Ore', ['weight'] = 200, ['type'] = 'item', ['image'] = 'diamond_ore.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['description'] = 'Raw diamond ore'},
  ['emerald_ore'] = {['name'] = 'emerald_ore', ['label'] = 'Emerald Ore', ['weight'] = 200, ['type'] = 'item', ['image'] = 'emerald_ore.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['description'] = 'Raw emerald ore'},
  ['iron_bar'] = {['name'] = 'iron_bar', ['label'] = 'Iron Bar', ['weight'] = 500, ['type'] = 'item', ['image'] = 'iron_bar.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['description'] = 'Processed iron'},
  ['copper_bar'] = {['name'] = 'copper_bar', ['label'] = 'Copper Bar', ['weight'] = 500, ['type'] = 'item', ['image'] = 'copper_bar.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['description'] = 'Processed copper'},
  ['gold_bar'] = {['name'] = 'gold_bar', ['label'] = 'Gold Bar', ['weight'] = 750, ['type'] = 'item', ['image'] = 'gold_bar.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['description'] = 'Processed gold'},
  ['diamond'] = {['name'] = 'diamond', ['label'] = 'Diamond', ['weight'] = 100, ['type'] = 'item', ['image'] = 'diamond.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['description'] = 'A polished diamond'},
  ['emerald'] = {['name'] = 'emerald', ['label'] = 'Emerald', ['weight'] = 100, ['type'] = 'item', ['image'] = 'emerald.png', ['unique'] = false, ['useable'] = false, ['shouldClose'] = true, ['description'] = 'A polished emerald'},
```

<br>

### ESX Default Inventory (SQL)

```
Run this in your database:

  INSERT INTO items (name, label, weight, rare, can_remove) VALUES
  ('pickaxe', 'Basic Pickaxe', 1, 0, 1),
  ('iron_pickaxe', 'Iron Pickaxe', 1, 0, 1),
  ('diamond_pickaxe', 'Diamond Pickaxe', 1, 0, 1),
  ('iron_ore', 'Iron Ore', 1, 0, 1),
  ('copper_ore', 'Copper Ore', 1, 0, 1),
  ('gold_ore', 'Gold Ore', 1, 0, 1),
  ('diamond_ore', 'Diamond Ore', 1, 0, 1),
  ('emerald_ore', 'Emerald Ore', 1, 0, 1),
  ('iron_bar', 'Iron Bar', 1, 0, 1),
  ('copper_bar', 'Copper Bar', 1, 0, 1),
  ('gold_bar', 'Gold Bar', 1, 0, 1),
  ('diamond', 'Diamond', 1, 1, 1),
  ('emerald', 'Emerald', 1, 1, 1);
```

### Required Images

```
Place these PNG files in your inventory images folder:

  pickaxe.png
  iron_pickaxe.png
  diamond_pickaxe.png
  iron_ore.png
  copper_ore.png
  gold_ore.png
  diamond_ore.png
  emerald_ore.png
  iron_bar.png
  copper_bar.png
  gold_bar.png
  diamond.png
  emerald.png

Recommended size: 512x512 pixels
Format: PNG with transparent backgroun
```


---

# 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/items-setup.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.
