# ds-mining

<div align="center"><img src="/files/SsSgiFOd2ziLURtbRXKQ" alt=""></div>

[<mark style="color:purple;">**View on Tebex**</mark>](https://dolajiscripts.com/package/5049720) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**CFX Fourm Post**</mark>](https://forum.cfx.re/t/paid-qbcore-esx-cave-mining-realistic-unique-mining-on-fivem/4836677) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Youtube Video**</mark>](https://www.youtube.com/watch?v=IFxTmacY4d8) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Discord**</mark>](https://discord.gg/vhF9ke3hJG)

## Installaction

### Dependencies

| Dependency               | Download                                              | Description                                                  |
| ------------------------ | ----------------------------------------------------- | ------------------------------------------------------------ |
| qb-input                 | [Link](https://github.com/qbcore-framework/qb-input)  | qb-input for add input option on sell stuff.                 |
| qb-target (**Optional**) | [Link](https://github.com/qbcore-framework/qb-target) | you need eye target script if you don't want to use drawtext |

### Start

1. Extract `ds-mining.zip` and place it into your resource folder.
2. Install and ensure [dependencies](#dependencies) for the resource.
3. Setup`config.lua` (⚠️see [#CONFIGURATION](#configuration) for instructions).&#x20;
4. Add`ensure ds-mining` to your server start config (place it anywhere below the dependency & framework resources).

### Configuration

{% hint style="warning" %}
Please go through **all** configurable options & settings in `config.lua` and configure them to your server's preferences.

Also please read the comments at the end of each line, for a brief information on what the option does.&#x20;
{% endhint %}

### Add Job (Optional)

{% tabs %}
{% tab title="QBCore" %}

#### Open `qb-core/shared/jobs.lua`and add this lines

```lua
mining = {
	label = 'Mining',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		['0'] = {
			name = 'Recruit',
			payment = 10
		},
	},
},

```

{% endtab %}

{% tab title="ESX" %}

#### Run this query in database

```sql
INSERT INTO `jobs` (name, label) VALUES
    ('mining','Mining')
;

INSERT INTO `job_grades` (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
    ('mining',0,'recruit','Recruit',10,'{}','{}')
; 
```

{% endtab %}
{% endtabs %}

### Add Items

{% tabs %}
{% tab title="QBCore" %}

#### Open `qb-core/shared/items.lua`and add this lines

```lua
c4 = {
        ["name"] = "c4",
        ["label"] = "C4",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "weapon_stickybomb.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "C4 For mining"
    },

    copper_bar = {
        ["name"] = "copper_bar",
        ["label"] = "Copper Bar",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "copper_bar.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "Copper Bar made from melted copper ore"
    },
    gold_bar = {
        ["name"] = "gold_bar",
        ["label"] = "Gold Bar",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "gold_bar.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "Gold Bar made from melted Gold ore"
    },
    iron_bar = {
        ["name"] = "iron_bar",
        ["label"] = "Iron Bar",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "iron_bar.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "Iron Bar made from melted Iron ore"
    },
    tin_bar = {
        ["name"] = "tin_bar",
        ["label"] = "Tin Bar",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "tin_bar.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "Tin Bar made from melted Tin ore"
    },
    unshapped_copper = {
        ["name"] = "unshapped_copper",
        ["label"] = "Unshapped Copper",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unshapped_copper.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unshapped copper"
    },
    unshapped_gold = {
        ["name"] = "unshapped_gold",
        ["label"] = "Unshapped Gold",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unshapped_gold.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unshapped gold"
    },
    unshapped_iron = {
        ["name"] = "unshapped_iron",
        ["label"] = "Unshapped Iron",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unshapped_iron.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unshapped iron"
    },
    unshapped_tin = {
        ["name"] = "unshapped_tin",
        ["label"] = "Unshapped Tin",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unshapped_tin.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unshapped tin"
    },
    unwashed_copper = {
        ["name"] = "unwashed_copper",
        ["label"] = "Unwashed Copper",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unwashed_copper.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed copper"
    },
    unwashed_gold = {
        ["name"] = "unwashed_gold",
        ["label"] = "Unwashed Gold",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unwashed_gold.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed gold"
    },
    unwashed_iron = {
        ["name"] = "unwashed_iron",
        ["label"] = "Unwashed Iron",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unwashed_iron.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed iron"
    },
    unwashed_tin = {
        ["name"] = "unwashed_tin",
        ["label"] = "Unwashed Tin",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unwashed_tin.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed tin"
    },

    aquamarine_unshapped = {
        ["name"] = "aquamarine_unshapped",
        ["label"] = "Aquamarine Unshapped",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "aquamarine_unshapped.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "aquamarine unshapped"
    },

    aquamarine = {
        ["name"] = "aquamarine",
        ["label"] = "Aquamarine",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "aquamarine.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "aquamarine"
    },

    greenberyl_unshapped = {
        ["name"] = "greenberyl_unshapped",
        ["label"] = "Greenberyl Unshapped",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "greenberyl_unshapped.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "greenberyl unshapped"
    },

    greenberyl = {
        ["name"] = "greenberyl",
        ["label"] = "Green Beryl",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "greenberyl.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "greenberyl"
    },

    ruby_unshapped = {
        ["name"] = "ruby_unshapped",
        ["label"] = "Ruby Unshapped",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "ruby_unshapped.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "ruby unshapped"
    },

    ruby = {
        ["name"] = "ruby",
        ["label"] = "Ruby",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "ruby.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "ruby"
    },

    unwashed_stone = {
        ["name"] = "unwashed_stone",
        ["label"] = "Unwashed Stone",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unwashed_stone.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed stone"
    },

    unshapped_coal = {
        ["name"] = "unshapped_coal",
        ["label"] = "Unshapped Coal",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "unshapped_coal.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unshapped_coal"
    },

    coal = {
        ["name"] = "coal",
        ["label"] = "Coal",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "coal.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "coal"
    },

    ds_diamond = {
        ["name"] = "ds_diamond",
        ["label"] = "Diamond",
        ["weight"] = 0,
        ["type"] = "item",
        ["image"] = "ds_diamond.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "iamond"
    },


    ------------ New Mining Update Items

    unwashed_sulfur = {
        ["name"] = "unwashed_sulfur",
        ["label"] = "Unwashed Sulfur",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "unwashed_sulfur.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed_sulfur"
    },
    unshapped_sulfur = {
        ["name"] = "unshapped_sulfur",
        ["label"] = "Ushapped Sulfur",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "unshapped_sulfur.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unshapped_sulfur"
    },

    sulfur_bar = {
        ["name"] = "sulfur_bar",
        ["label"] = "Sulfur",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "sulfur_bar.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "sulfurr"
    },
    unwashed_lead = {
        ["name"] = "unwashed_lead",
        ["label"] = "Unwashed Lead",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "unwashed_lead.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed_lead"
    },
    unshapped_lead = {
        ["name"] = "unshapped_lead",
        ["label"] = "Unshapped Lead",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "unshapped_lead.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "Unshapped Lead"
    },
    lead_ore = {
        ["name"] = "lead_ore",
        ["label"] = "Lead Ore",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "lead_ore.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "lead ore"
    },
    bauxite = {
        ["name"] = "bauxite",
        ["label"] = "Bauxite",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "bauxite.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "bauxite"
    },
    unshapped_bauxite = {
        ["name"] = "unshapped_bauxite",
        ["label"] = "Unshapped Bauxite",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "unshapped_bauxite.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unshapped_bauxite"
    },
    unwashed_bauxite = {
        ["name"] = "unwashed_bauxite",
        ["label"] = "Unwashed Bauxite",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "unwashed_bauxite.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "unwashed_bauxite"
    },
    uncut_diamond = {
        ["name"] = "uncut_diamond",
        ["label"] = "Uncut Diamond",
        ["weight"] = 1000,
        ["type"] = "item",
        ["image"] = "uncut_diamond.png",
        ["unique"] = false,
        ["useable"] = true,
        ["shouldClose"] = false,
        ["combinable"] = nil,
        ["description"] = "uncut_diamond"
    },
```

{% endtab %}

{% tab title="ESX" %}

#### Run this query in database

```sql
INSERT INTO `items` (`name`, `label`, `weight`, `rare`, `can_remove`) VALUES
('c4', 'C4', 1, 0, 1),
('copper_bar', 'Copper Bar', 2, 0, 1),
('gold_bar', 'Gold Bar', 1, 0, 0),
('iron_bar', 'Iron Bar', 2, 0, 1),
('tin_bar', 'Tin Bar', 1, 0, 1),
('unshapped_copper', 'Unshapped Copper', 3, 0, 1),
('unshapped_gold', 'Unshapped Gold', 3, 0, 1),
('unshapped_iron', 'Unshapped Iron', 2, 0, 1),
('unshapped_tin', 'Unshapped Tin', 1, 0, 1),
('unwashed_copper', 'Unwashed Copper', 1, 0, 1),
('unwashed_gold', 'Unwashed Gold', 3, 0, 1),
('unwashed_iron', 'Unwashed Iron', 2, 0, 1),
('unwashed_tin', 'Unwashed Tin', 1, 0, 1),
('aquamarine_unshapped', 'Aquamarine Unshapped', 1, 0, 1),
('aquamarine', 'Aquamarine', 1, 0, 1),
('greenberyl_unshapped', 'Greenberyl Unshapped', 1, 0, 1),
('greenberyl', 'Green Beryl', 1, 0, 1),
('ruby_unshapped', 'Ruby Unshapped', 1, 0, 1),
('ruby', 'Ruby', 3, 0, 1),
('unwashed_stone', 'Unwashed Stone', 2, 0, 1),
('unshapped_coal', 'Unshapped Coal', 2, 0, 1),
('coal', 'Coal', 1, 0, 1),
('ds_diamond', 'Diamond', 1, 0, 1),
('unwashed_sulfur', 'Unwashed Sulfur', 1, 0, 1),
('unshapped_sulfur', 'Ushapped Sulfur', 1, 0, 1),
('sulfur_bar', 'Sulfur', 1, 0, 1),
('unwashed_lead', 'Unwashed Lead', 1, 0, 1),
('unshapped_lead', 'Unshapped Lead', 1, 0, 1),
('lead_ore', 'Lead Ore', 1, 0, 1),
('bauxite', 'Bauxite', 1, 0, 1),
('unshapped_bauxite', 'Unshapped Bauxite', 1, 0, 1),
('unwashed_bauxite', 'Unwashed Bauxite', 1, 0, 1),
('uncut_diamond', 'Uncut Diamond', 1, 0, 1),
('drill', 'Drill', 1, 0, 1),
('weapon_hammer', 'Hammer', 1, 0, 1);
```

{% endtab %}

{% tab title="Images" %}
[Download Link](https://drive.google.com/file/d/1Us_uDW3Nh0H6dlRDO8Zo8iVXY4B-g9Ep/view?usp=sharing)
{% endtab %}

{% tab title="qs-inventory" %}

```
['c4']                                = {['name'] = 'c4', ['label'] = 'C4', ['weight'] = 0, ['type'] = 'item', ['image'] = 'weapon_stickybomb.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'C4 For mining'},
['copper_bar']                        = {['name'] = 'copper_bar', ['label'] = 'Copper Bar', ['weight'] = 0, ['type'] = 'item', ['image'] = 'copper_bar.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Copper Bar made from melted copper ore'},
['gold_bar']                          = {['name'] = 'gold_bar', ['label'] = 'Gold Bar', ['weight'] = 0, ['type'] = 'item', ['image'] = 'gold_bar.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Gold Bar made from melted Gold ore'},
['i
 = 'Iron Bar made from melted Iron ore'},
['tin_bar']                           = {['name'] = 'tin_bar', ['label'] = 'Tin Bar', ['weight'] = 0, ['type'] = 'item', ['image'] = 'tin_bar.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Tin Bar made from melted Tin ore'},
['unshapped_copper']                  = {['name'] = 'unshapped_copper', ['label'] = 'Unshapped Copper', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unshapped_copper.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unshapped copper'},
['unshapped_gold']                    = {['name'] = 'unshapped_gold', ['label'] = 'Unshapped Gold', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unshapped_gold.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unshapped gold'},
['unshapped_iron']                    = {['name'] = 'unshapped_iron', ['label'] = 'Unshapped Iron', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unshapped_iron.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unshapped iron'},
['unshapped_tin']                     = {['name'] = 'unshapped_tin', ['label'] = 'Unshapped Tin', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unshapped_tin.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unshapped tin'},
['unwashed_copper']                   = {['name'] = 'unwashed_copper', ['label'] = 'Unwashed Copper', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unwashed_copper.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed copper'},
['unwashed_gold']                     = {['name'] = 'unwashed_gold', ['label'] = 'Unwashed Gold', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unwashed_gold.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed gold'},
['unwashed_iron']                     = {['name'] = 'unwashed_iron', ['label'] = 'Unwashed Iron', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unwashed_iron.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed iron'},
['unwashed_tin']                      = {['name'] = 'unwashed_tin', ['label'] = 'Unwashed Tin', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unwashed_tin.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed tin'},
['aquamarine_unshapped']              = {['name'] = 'aquamarine_unshapped', ['label'] = 'Aquamarine Unshapped', ['weight'] = 0, ['type'] = 'item', ['image'] = 'aquamarine_unshapped.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'aquamarine unshapped'},
['aquamarine']                        = {['name'] = 'aquamarine', ['label'] = 'Aquamarine', ['weight'] = 0, ['type'] = 'item', ['image'] = 'aquamarine.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'aquamarine'},
['greenberyl_unshapped']              = {['name'] = 'greenberyl_unshapped', ['label'] = 'Greenberyl Unshapped', ['weight'] = 0, ['type'] = 'item', ['image'] = 'greenberyl_unshapped.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'greenberyl unshapped'},
['greenberyl']                        = {['name'] = 'greenberyl', ['label'] = 'Green Beryl', ['weight'] = 0, ['type'] = 'item', ['image'] = 'greenberyl.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'greenberyl'},
['ruby_unshapped']                    = {['name'] = 'ruby_unshapped', ['label'] = 'Ruby Unshapped', ['weight'] = 0, ['type'] = 'item', ['image'] = 'ruby_unshapped.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'ruby unshapped'},
['ruby']                              = {['name'] = 'ruby', ['label'] = 'Ruby', ['weight'] = 0, ['type'] = 'item', ['image'] = 'ruby.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'ruby'},
['unwashed_stone']                    = {['name'] = 'unwashed_stone', ['label'] = 'Unwashed Stone', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unwashed_stone.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed stone'},
['unshapped_coal']                    = {['name'] = 'unshapped_coal', ['label'] = 'Unshapped Coal', ['weight'] = 0, ['type'] = 'item', ['image'] = 'unshapped_coal.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unshapped_coal'},
['coal']                              = {['name'] = 'coal', ['label'] = 'Coal', ['weight'] = 0, ['type'] = 'item', ['image'] = 'coal.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'coal'},
['ds_diamond']                        = {['name'] = 'ds_diamond', ['label'] = 'Diamond', ['weight'] = 0, ['type'] = 'item', ['image'] = 'ds_diamond.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'diamond'},
['unwashed_sulfur']                   = {['name'] = 'unwashed_sulfur', ['label'] = 'Unwashed Sulfur', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'unwashed_sulfur.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed_sulfur'},
['unshapped_sulfur']                  = {['name'] = 'unshapped_sulfur', ['label'] = 'Ushapped Sulfur', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'unshapped_sulfur.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unshapped_sulfur'},
['sulfur_bar']                        = {['name'] = 'sulfur_bar', ['label'] = 'Sulfur', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'sulfur_bar.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'sulfur'},
['unwashed_lead']                     = {['name'] = 'unwashed_lead', ['label'] = 'Unwashed Lead', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'unwashed_lead.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed_lead'},
['unshapped_lead']                    = {['name'] = 'unshapped_lead', ['label'] = 'Unshapped Lead', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'unshapped_lead.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'Unshapped Lead'},
['lead_ore']                          = {['name'] = 'lead_ore', ['label'] = 'Lead Ore', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'lead_ore.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'lead ore'},
['bauxite']                           = {['name'] = 'bauxite', ['label'] = 'Bauxite', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'bauxite.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'bauxite'},
['unshapped_bauxite']                 = {['name'] = 'unshapped_bauxite', ['label'] = 'Unshapped Bauxite', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'unshapped_bauxite.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unshapped_bauxite'},
['unwashed_bauxite']                  = {['name'] = 'unwashed_bauxite', ['label'] = 'Unwashed Bauxite', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'unwashed_bauxite.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'unwashed_bauxite'},
['uncut_diamond']                     = {['name'] = 'uncut_diamond', ['label'] = 'Uncut Diamond', ['weight'] = 1000, ['type'] = 'item', ['image'] = 'uncut_diamond.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = false, ['combinable'] = nil, ['description'] = 'uncut_diamond'},

```

{% endtab %}

{% tab title="ox-inventory" %}
add this to bottom of ox\_inventory/data/shops.lua

```lua
MiningFood = {
		name = 'Mining Food Shop',
		inventory = {
			{ name = 'sandwich', price = 10 },
			{ name = 'water_bottle', price = 10 },
		}, locations = {
			vec3(2920.3, 2647.94, 43.15),
		}
},

MiningTools = {
	name = 'Mining Tools Shop',
	inventory = {
		{ name = 'c4', price = 10 },
		{ name = 'drill', price = 10 },
		{ name = 'weapon_hammer', price = 10 },
	}, locations = {
		vec3(2949.01, 2751.78, 43.35),
	}
},
```

{% endtab %}
{% endtabs %}


---

# 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://docs.dolajiscripts.com/resources/ds-mining.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.
