> 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-milkjob.md).

# ds-milkjob

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

<mark style="color:purple;">**View on Tebex |**</mark> [<mark style="color:purple;">**CFX Fourm Post**</mark>](https://forum.cfx.re/t/paid-qbcore-esx-milk-job-most-advanced-unique-milking-job-on-fivem/4842542) <mark style="color:purple;">**|**</mark> [<mark style="color:purple;">**Youtube Video**</mark>](https://youtu.be/dpIQZO1RYIQ) <mark style="color:purple;">**| Discord**</mark>

## Installaction

### Dependencies

| Dependency | Download                                                                                   | Description                                                       |
| ---------- | ------------------------------------------------------------------------------------------ | ----------------------------------------------------------------- |
| qb-input   | [Link](https://github.com/qbcore-framework/qb-input)                                       | qb-input for add input option on sell oranges and pickup oranges. |
| milk-prop  | [Link](https://drive.google.com/file/d/1-sr6eVSbS8NmgVr16vfkJ96aF9zg1MfM/view?usp=sharing) | Custom prop for milk processing                                   |

### Start

1. Extract ds-milkjob.`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-milkjob 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 Items

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

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

```lua
["milk"] = {
    ["name"] = "milk",
    ["label"] = "Milk",
    ["weight"] = 200,
    ["type"] = "item",
    ["image"] = "milk.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Milk"
},

["bucket"] = {
    ["name"] = "bucket",
    ["label"] = "Bucket",
    ["weight"] = 200,
    ["type"] = "item",
    ["image"] = "bucket.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "Bucket"
},

["rope"] = {
    ["name"] = "rope",
    ["label"] = "Rope",
    ["weight"] = 200,
    ["type"] = "item",
    ["image"] = "rope.png",
    ["unique"] = false,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = "rope"
},
```

{% endtab %}

{% tab title="ESX" %}

```sql
INSERT INTO items (name, label, weight, rare, can_remove) VALUES ('milk', 'Milk', 1, 0, 1), ('bucket', 'Bucket', 2, 0, 1), ('rope', 'Rope', 1, 0, 1);
INSERT INTO jobs (name, label, whitelisted) VALUES ('farmer', 'Farmer', 0);
INSERT INTO job_grades (job_name, grade, name, label, salary, skin_male, skin_female) VALUES ('farmer', 0, 'recruit', 'Recruit', 20, '{}', '{}');
```

{% endtab %}

{% tab title="Inventory Images" %}
![](/files/6nSoXFqnsCzfvwww42UT) ![](/files/Hvh7AaZEm3Mkhibd3ozy) ![](/files/WUmI8eruNslkcy6VfTnx)
{% endtab %}
{% endtabs %}
