> For the complete documentation index, see [llms.txt](https://sbscripts.gitbook.io/sb-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sbscripts.gitbook.io/sb-scripts/sb-firefighter-job/configuration.md).

# Configuration

Configure jobs, fires, rewards, vehicles, outfits, and shop items.

Configure the resource through `config.lua`.

### Job access

Set `Config.Job` to the job allowed to start firefighter work.

```lua
Config.Job = 'ambulance'
```

Set this value to `"none"` to allow every player to start jobs.

### Fire groups

Each group contains one or more possible fire points.

```lua
Config.FireGroups = {
    {
        name = 'My Location',
        points = {
            vector3(x, y, z),
            vector3(x, y, z),
        }
    },
}
```

### Fire intervals

Control fire frequency and concurrency.

```lua
Config.MaxActiveFires = 3 -- Maximum simultaneous fires
Config.FireInterval = 10  -- Minutes between spawns while on duty
```

### XP and rewards

These values apply to every extinguished fire point.

```lua
Config.XPPerFire = 50
Config.CashPerFire = 500
Config.BankPerFire = 0
```

### Level thresholds

Define the XP required for each level.

```lua
Config.LevelXP = {
    [1] = 0,
    [2] = 200,
    [3] = 500,
    -- Add further levels here.
}
```

### Outfit

Set male and female component IDs in `Config.Outfit`.

Players can apply this uniform or restore their default skin.

### Vehicles

Set dispatchable vehicles and their spawn point.

```lua
Config.Vehicles = {
    { label = '🚒 Fire Engine', model = 'firetruk', livery = 0 },
}

Config.VehicleSpawnPoint = vector4(x, y, z, heading)
```

### Shop items

Set cash-purchased supplies in `Config.ShopItems`.

```lua
Config.ShopItems = {
    {
        name = 'fireextinguisher',
        label = '🧯 Fire Extinguisher',
        price = 150,
        description = 'Essential firefighting equipment.',
        icon = '🧯',
    },
}
```
