# client.lua

## <mark style="color:yellow;">**Ore Spawn Distance**</mark>

```lua
Config.OreSpawnDistance = 150.0
```

* **Description**: Sets the distance from the player where ores will spawn.
* **Example**: A value of `150.0` means ores can spawn within a 150-meter radius of the player.

***

## <mark style="color:yellow;">**Drilling Time**</mark>

```lua
Config.drillingTime = 8000
```

* **Description**: Specifies the time (in milliseconds) required to drill an ore.
* **Example**: `8000` equals 8 seconds of drilling time.

***

## <mark style="color:yellow;">**Smelting Time**</mark>

```lua
Config.SmeltingTime = 30000
```

* **Description**: Defines the time (in milliseconds) required to smelt ore.
* **Example**: `30000` means it will take 30 seconds to smelt ores.

***

## <mark style="color:yellow;">**Main Ped Configuration**</mark>

```lua
Config.MainPed = {
    model = "s_m_y_construct_02",
    coords = vec4(2832.3860, 2798.6382, 57.4497, 100.6738),
    sprite = 527,
    color = 5,
    scale = 0.8,
    name = "Miner Job",
}
```

* **Model**: Ped model used for the Miner NPC (`s_m_y_construct_02`).
* **Coordinates**: Position of the Miner NPC on the map.
* **Marker Details**:
  * **Sprite**: `527`
  * **Color**: `5`
  * **Scale**: `0.8`
* **Name**: Displayed as "Miner Job" when interacting.

***

## <mark style="color:yellow;">**Smelting Configuration**</mark>

```lua
Config.Smelting = {
    coords = vec3(1084.6836, -2002.9283, 31.3806),
    sprite = 618,
    color = 5,
    scale = 0.8,
    name = "Smelting",
}
```

* **Description**: Defines the location and appearance of the smelting area.
* **Coordinates**: `(1084.6836, -2002.9283, 31.3806)`
* **Marker Details**:
  * **Sprite**: `618`
  * **Color**: `5`
  * **Scale**: `0.8`
* **Name**: Displayed as "Smelting" when interacting.

***

## <mark style="color:yellow;">**Selling Configuration**</mark>

```lua
Config.Selling = {
    coords = vec3(-624.5422, -231.0968, 38.0570),
    sprite = 617,
    color = 5,
    scale = 0.8,
    name = "Selling",
}
```

* **Description**: Defines the location and appearance of the selling point.
* **Coordinates**: `(-624.5422, -231.0968, 38.0570)`
* **Marker Details**:
  * **Sprite**: `617`
  * **Color**: `5`
  * **Scale**: `0.8`
* **Name**: Displayed as "Selling" when interacting.

***

## <mark style="color:yellow;">**Clothing Configuration**</mark>

```lua
Config.Clothing = {
    ["mp_m_freemode_01"] = { 
        {
            img = "https://cfx-nui-dh_miner/html/host/miner_m1.png",
            clothes = {
                torso = {65, 3},
                tshirt = { 155, 0 },
                pants = { 38, 3 },
                boots = { 27, 0 },
                gloves = { 64, 0 },
                hat = { 144, 3 },
            }
        },
        -- Additional outfits here...
    }
}
```

* **Description**: Allows customization of up to 3 clothing sets per gender.
* **Images**: Displays clothing preview in the menu.
* **Clothes Data**: Defines the clothing parts (e.g., torso, t-shirt, pants).

***

## <mark style="color:yellow;">**Vehicle Configuration**</mark>

```lua
Config.Vehicles = {
    --{ -- use it if you want to disable vehicle
    --    model = "none",
    --    price = 0,
    --    img = "https://cfx-nui-dh_miner/html/host/none.png",
    --},
    {
        model = "bodhi2",
        price = 100,
        img = "https://cfx-nui-dh_miner/html/host/bodhi2.png",
    },
    {
        model = "sandking",
        price = 300,
        img = "https://cfx-nui-dh_miner/html/host/sandking.png",
    },
}
```

<mark style="color:red;">If you want to turn off the work vehicle, use the example at the very top</mark>

* **Description**: Configures available rental vehicles.
* **Model**: Vehicle model name.
* **Price**: Cost of renting the vehicle.
* **Image**: URL for the vehicle image displayed in the menu.

***

## <mark style="color:yellow;">**Vehicle Spawn Points**</mark>

```lua
Config.VehiclesSpawnPoints = {
    vec4(2827.2422, 2800.7427, 57.6350, 177.0261),
    vec4(2843.1853, 2790.4595, 59.6977, 212.7704),
    vec4(2839.3914, 2773.9546, 60.9099, 232.5432),
}
```

* **Description**: Specifies the spawn locations for rented vehicles.
* **Coordinates**: Each `vec4` includes X, Y, Z position, and heading.

***

## <mark style="color:yellow;">**Notification Types**</mark>

```lua
Config.NotificationsTypes = {
    ["info"] = "https://cfx-nui-dh_miner/html/host/info.png",
    ["success"] = "https://cfx-nui-dh_miner/html/host/success.png",
    ["error"] = "https://cfx-nui-dh_miner/html/host/error.png",
}
```

* **Description**: Custom icons for different types of notifications.
* **Types**: `info`, `success`, `error`

***

## <mark style="color:yellow;">**HUD Placement**</mark>

```lua
Config.HudPlacement = "bottom-right"
```

* **Description**: Sets the position of the HUD on the screen.
* **Options**: `"bottom-left"`, `"bottom-right"`, `"top-right"`, `"top-left"`


---

# Agent Instructions: 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:

```
GET https://docs.devhub.gg/miner-job/configuration/client.lua.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
