# Installation

### Step 1: Extract Files

Extract the `mining` folder to your server resources directory.

Your folder structure should look like this:

resources/ mining/ fxmanifest.lua shared/ config.lua locale.lua locales/ en.lua tr.lua bridge/ framework.lua esx.lua qb.lua client/ main.lua shop.lua events.lua server/ main.lua rewards.lua webhooks.lua shop.lua events.lua sql/ install.sql

### Step 2: Import SQL

Open your database manager (HeidiSQL, phpMyAdmin, etc.) and run the following SQL file:

sql/install.sql

This will create two tables: • mining\_data (XP and level tracking) • mining\_stats (statistics tracking)

### Step 3: Add Items

Choose your inventory system and add the required items.

#### For ox\_inventory:

Open ox\_inventory/data/items.lua and add all mining items. See the Items Setup page for the full list.

#### For qb-inventory:

Open qb-core/shared/items.lua and add all mining items. See the Items Setup page for the full list.

#### For ESX default inventory:

Run the SQL query provided in the Items Setup page.

### Step 4: Add Images

Copy all item images to your inventory images folder:

For ox\_inventory: ox\_inventory/web/images/

For qb-inventory: qb-inventory/html/images/

Required image files (PNG format, 512x512): 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

### Step 5: Configure

Open shared/config.lua and set your framework:

Config.Framework = 'qb' -- 'qb' or 'esx' Config.Inventory = 'ox' -- 'ox', 'qb', or 'esx' Config.Locale = 'en' -- 'en' or 'tr'

### Step 6: Add to server.cfg

Add this line to your server.cfg:

ensure mining

### Step 7: Restart

Restart your server completely.


---

# 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/installation.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.
