> For the complete documentation index, see [llms.txt](https://l3th.gitbook.io/l3th-development/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://l3th.gitbook.io/l3th-development/paid-assets/miner-job/setup-guide.md).

# Setup Guide

{% stepper %}
{% step %}

## Install Dependencies

{% hint style="warning" %}
Verify all dependencies below are started *before* this resources in your  `sever.cfg`&#x20;
{% endhint %}

Install (or update) all dependencies below:

{% embed url="<https://github.com/CommunityOx/ox_lib/releases>" %}
{% endstep %}

{% step %}

### Soft Dependencies

This resource does not only require `ox_lib`, it also requires a inventory, target, progressbar and notify.

If you’re not using `ox_inventory` or `qb-inventory`, your inventory resource will need to include these exports. The same applies to target and notify.

Under here is the exports that I will need in order to make the resource work. I use `ox` resources as the example here.

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

```lua
// Client Side

return exports.ox_inventory:Search('count', item) >= count

// Server Side

return exports.ox_inventory:AddItem(source, item, count, metadata or nil)

return exports.ox_inventory:RemoveItem(source, item, count)

return exports.ox_inventory:Search(source, 'count', item) >= count

return exports.ox_inventory:CanCarryItem(source, item, count)

return exports.ox_inventory:GetItemCount(inv, itemName, metadata, strict)

```

{% endtab %}

{% tab title="Target" %}

```lua
// Client Side

return exports.ox_target:addSphereZone({
      name = data.name,
      coords = data.coords,
      radius = data.radius or 1.0,
      debug = data.debug or false,
      options = utils.getTargetOptions(data.options)
    })
    
 return exports.ox_target:addLocalEntity(entity, utils.getTargetOptions(options))
 
```

{% endtab %}

{% tab title="Notify" %}

```lua
// Client Side

lib.notify({
      title = data.title or '',
      description = data.description or '',
      type = data.type or 'info',
      position = data.position or 'bottom',
      duration = data.duration or 3000,
    })

// Server Side

TriggerClientEvent('ox_lib:notify', data.source, data, data.position or 'bottom')

```

{% endtab %}

{% tab title="Progress Bar" %}

```lua
// Client Side

local success = lib.progressBar({
    duration = data.duration,
    position = 'bottom',
    label = data.label,
    useWhileDead = false,
    canCancel = data.canCancel == nil and true or data.canCancel,
    disable = data.disable,
    anim = data.anim,
    prop = data.prop,
  })

```

{% endtab %}
{% endtabs %}

{% endstep %}

{% step %}

## Add Items

Open the `install` folder and add the `items` & their `images` to your inventory.

{% tabs %}
{% tab title="ox\_inventory" %}

* Copy items from `/install/items/ox_inventory.txt` into `ox_inventory/data/items.lua`
* Copy images from `/install/images` into `ox_inventory/web/images`

```lua
-- Item data format for ox_inventory
["l3th_rock"] = {
        label = "Rock",
        weight = 2500,
        stack = true,
        close = true,
        client = {
            image = "l3th_rock.png",
        }
    },
```

Complete item list can be found in `/install/items/*.txt`
{% endtab %}

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

* Copy items from `/install/items/qb-inventory.txt` into `qb-core/shared/items.lua`
* Copy images from `/install/images` into `qb-inventory/html/images`&#x20;

```lua
-- Item data for qb-inventory
['l3th_rock']               = {['name'] = 'l3th_rock',                 ['label'] = 'Rock',               ['weight'] = 2500, ['type'] = 'item', ['image'] = 'l3th_rock.png',               ['unique'] = false, ['useable'] = false, ['shouldClose'] = true,  ['combinable'] = nil, ['description'] = 'Just a rock'},
```

Complete item list can be found in `/install/items/*.txt`
{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### Pickaxe Asset

Download this or any other pickaxes assets that can be used. My recommendation is this:

{% embed url="<https://github.com/void-hub-scripts/vh-pickaxe>" %}
{% endstep %}

{% step %}

## Restart Server

* Add this script into your main resources directory (usually `../resources`)
* Open `server.cfg`  and add `start` or `ensure l3th-minerjob`&#x20;
  {% endstep %}
  {% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://l3th.gitbook.io/l3th-development/paid-assets/miner-job/setup-guide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
