# Company

File: `shared/config.lua` → `Config.Company`

Defines the gardener company — its name, NPC, map blip, job requirement, parking spots, vehicles, and equipment offsets.

## Top-level fields

| Key                       | Type     | Description                                  |
| ------------------------- | -------- | -------------------------------------------- |
| `name`                    | `string` | Company display name.                        |
| `ped`                     | `table`  | NPC (ped) configuration.                     |
| `blip`                    | `table`  | Map blip settings.                           |
| `neededJob`               | `table`  | Job restriction settings.                    |
| `parkings`                | `table`  | List of parking spot positions.              |
| `vehicles`                | `table`  | Available company vehicles.                  |
| `vehicleEquipmentOffsets` | `table`  | Equipment attachment offsets on the vehicle. |

***

## `ped`

| Key      | Type     | Description                            |
| -------- | -------- | -------------------------------------- |
| `coords` | `vec4`   | World position and heading of the NPC. |
| `model`  | `string` | Ped model name.                        |
| `anim`   | `table`  | Idle animation (`dict` + `name`).      |

## `blip`

| Key      | Type     | Description           |
| -------- | -------- | --------------------- |
| `sprite` | `number` | Blip sprite ID.       |
| `color`  | `number` | Blip color ID.        |
| `scale`  | `number` | Blip size on the map. |
| `label`  | `string` | Blip label text.      |

## `neededJob`

| Key       | Type      | Description                                   |
| --------- | --------- | --------------------------------------------- |
| `enabled` | `boolean` | Whether a specific job is required.           |
| `jobName` | `string`  | Name of the required job (e.g. `'gardener'`). |

## `parkings`

An array of `{ coords = vec4(...) }` entries. Each entry defines a parking spot where company vehicles can spawn.

## `vehicles`

| Key     | Type     | Description               |
| ------- | -------- | ------------------------- |
| `model` | `string` | Vehicle spawn model name. |
| `label` | `string` | Display name in the UI.   |

## `vehicleEquipmentOffsets`

Defines the attachment position and rotation for each piece of equipment mounted on the vehicle.

| Key             | Fields                | Description                           |
| --------------- | --------------------- | ------------------------------------- |
| `mower`         | `x, y, z, rx, ry, rz` | Manual push mower offset.             |
| `mower_tractor` | `x, y, z, rx, ry, rz` | Ride-on tractor offset (on the roof). |
| `hedge`         | `x, y, z, rx, ry, rz` | Hedge trimmer offset.                 |
| `flowers`       | `x, y, z, rx, ry, rz` | Flower planting supplies offset.      |
| `wateringcan`   | `x, y, z, rx, ry, rz` | Watering can offset.                  |
| `flowerpot`     | `x, y, z, rx, ry, rz` | Flower pot offset.                    |

## Example

{% code title="shared/config.lua" %}

```lua
Config.Company = {
    name = 'Los Santos Gardener',

    ped = {
        coords = vec4(583.8412, 137.9120, 99.4747, 160.2695),
        model  = 's_m_m_gardener_01',
        anim   = { dict = 'amb@world_human_clipboard@male@base', name = 'base' }
    },

    blip = {
        sprite = 477,
        color  = 5,
        scale  = 1.0,
        label  = 'Gardener Company',
    },

    neededJob = {
        enabled = true,
        jobName = 'gardener'
    },

    parkings = {
        { coords = vec4(601.58, 114.93, 92.90, 253.22) },
        -- more spots …
    },

    vehicles = {
        { model = 'burrito3', label = 'Burrito Van' }
    },

    vehicleEquipmentOffsets = {
        mower         = { x = 0.0,  y = -1.2, z = 0.15, rx = 0, ry = 0, rz = 0  },
        mower_tractor = { x = 0.0,  y = -0.5, z = 2.20, rx = 0, ry = 0, rz = 0  },
        hedge         = { x = -0.45, y = -1.0, z = 0.32, rx = 0, ry = 0, rz = 90 },
        -- etc.
    }
}
```

{% endcode %}
