# ds-milkjob

<div align="center"><img src="https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2FhsYkmyS60Wn0oY7Q53o2%2F57a90d77eb6cfc8d836594bf0e7f0300a04d0fef.png?alt=media&#x26;token=f381adfc-c3dd-456b-ad74-8b8344d8d16a" 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" %}
![](https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2Fg7tuSpGPZJoIjEtkcl3d%2Fbucket.png?alt=media\&token=65433336-44ca-453f-bbc1-0faa41c8fbae) ![](https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2FGh0oseDrYGTUp8h3eHq6%2Fmilk.png?alt=media\&token=cc7e40cf-d38a-4fd3-b90e-5f36c97c3879) ![](https://4110497292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fuhl02tPOpD1HNS2qZ6wT%2Fuploads%2F4gR1o0pq5wEm85yHxC16%2Frope.png?alt=media\&token=1afec8a2-2289-4719-9d1c-f0bd12abc042)
{% endtab %}
{% endtabs %}
