# Setup

## Installation

Follow the instructions below to run the gusti-minerjob script on your server

* Extract rar file `[ESX] Gusti Welderloot`
* Copy / cut `gusti-welderloot` into your server's `resources` folder
* Open the `setup` folder inside the `gusti-welderloot` folder
* Drag and drop the `gusti-welderloot.sql` file into your database
* Open `server.cfg`
* Add the `gusti-welderloot` script by `ensure gusti-welderloot` in `server.cfg`
* Restart server
* Finished
* Now you can enjoy the features of the gusti-welderloot script on your server

{% hint style="info" %}
Before running the gusti-welderloot script, please pay attention to the dependencies section!
{% endhint %}

## Configuration

Open the `config.lua` file located in the `gusti-welderloot` folder to configure

* Change Language (en / id)
* Disable Control Action (to prevent abusing the animation bug)
* Notification Type (gusti-notify / mythic\_notify / ESX)
* Ox Target (icon, label, distance)
* Lib Progress (lib.progressBar / lib.progressCircle)
* Prop Models (list of model props to be looted)
* Welding (require, require\_amount, item\_revenue, chance)

## Item For Ox Inventory

add this code to add items inside the ox\_inventory script

open `data/items.lua`

```lua
["welding_machine"] = {
    label = "Welding Machine",
    weight = 1,
    stack = true,
    close = true,
},

["car_engine"] = {
    label = "Car Engine",
    weight = 1,
    stack = true,
    close = true,
},

["shockbreaker"] = {
    label = "Shock Breaker",
    weight = 1,
    stack = true,
    close = true,
},

["turbo"] = {
    label = "Turbo",
    weight = 1,
    stack = true,
    close = true,
},

["nitro"] = {
    label = "Nitro",
    weight = 1,
    stack = true,
    close = true,
},

["steel"] = {
    label = "Steel",
    weight = 1,
    stack = true,
    close = true,
},

["iron"] = {
    label = "Iron",
    weight = 1,
    stack = true,
    close = true,
},
```

## Item Image

* [Welding Machine](https://imgur.com/SyU5vEv.png)
* [Car Engine](https://imgur.com/Ej8GgFr.png)
* [Shock Breaker](https://imgur.com/jcXmAHX.png)
* [Turbo](https://imgur.com/IDQGJiX.png)
* [Nitro](https://imgur.com/ZWbXeUb.png)
* [Steel](https://imgur.com/n9phyyL.png)
* [Iron](https://imgur.com/uuBMNsJ.png)
* [View All](https://imgur.com/a/y7Y1xTt)

## Dependency

* [es\_extended](https://github.com/esx-framework/esx_core)
* [ox\_lib](https://github.com/overextended/ox_lib)
* [ox\_target](https://github.com/overextended/ox_target)
