> For the complete documentation index, see [llms.txt](https://docs.dolajiscripts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dolajiscripts.com/resources/ds-electrician.md).

# ds-electrician

<figure><img src="/files/GUxLRU82oqfwTwMVWuDa" alt=""><figcaption></figcaption></figure>

[<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/dolaji-s-scripts-952174929518936114)

## Installaction

### Dependencies

| Dependency               | Download                                                   | Description                                                  |
| ------------------------ | ---------------------------------------------------------- | ------------------------------------------------------------ |
| calibrate-distributor    | [Link](https://github.com/dolaji-op/calibrate-distributor) | minigame to job                                              |
| 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-electrician.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-electrician` 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
['electrician'] = {
    label = 'Electrician',
    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, whitelisted) VALUES ('electrician', 'Electrician', 0);
INSERT INTO job_grades (job_name, grade, name, label, salary, skin_male, skin_female) VALUES ('electrician', 0, 'recruit', 'Recruit', 20, '{}', '{}');
```

{% endtab %}
{% endtabs %}

### Add Items

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

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

<pre class="language-lua"><code class="lang-lua"><strong>["repairtool"] = {
</strong>    ["name"] = "repairtool",
    ["label"] = "Repair Tool",
    ["weight"] = 0,
    ["type"] = "item",
    ["image"] = "repairtool.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = "Repair tool for Electrician"
},

["eletool"] = {
    ["name"] = "eletool",
    ["label"] = "Electrician Tools",
    ["weight"] = 0,
    ["type"] = "item",
    ["image"] = "repairtool.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = "Tool box for Electrician"
},
</code></pre>

{% endtab %}

{% tab title="ESX" %}

#### Run this query in database

```sql
INSERT INTO items (name, label, weight, rare, can_remove) VALUES ('repairtool', 'Repair Tool', 1, 0, 1), ('eletool', 'Electrician Tool', 2, 0, 1);
```

{% endtab %}

{% tab title="Images" %}
[Download Link](https://cdn.discordapp.com/attachments/932109362623832146/1126059213836259398/ds-electrician.zip)
{% endtab %}
{% endtabs %}
