# Configuration

All primary configuration lives in `config/*.lua`.

## Main Config

File: `config/init.lua`

Important settings:

* `Config.locale`
* `Config.ambulanceJobs`
* `Config.facilityJobs`
* `Config.commands`
* `Config.inventoryImagesFolder`
* `Config.useCustomInventory`
* `Config.logger`

Default admin / EMS command entries include:

* `emsAlert`
* `adminRevive`
* `adminKill`
* `reviveNearest`
* `adminHealthTest`
* `hotbarAssistiveDebug`

`Config.ambulanceJobs` controls the default jobs allowed to access ambulance features:

```lua
Config.ambulanceJobs = {
    "ambulance",
    "ems",
}
```

## Medical Config

File: `config/medical.lua`

This file controls:

* laststand and deathscreen behavior
* death and laststand timers
* EMS call and respawn keybinds
* hospital respawn inventory wipe behavior
* dispatch blip/zone behavior
* revive, death, crawl, and get-up animations
* healing item behavior
* regional injury thresholds
* weapon and bone region mapping
* bleeding, blackout, stumble, and other injury effects

The regional injury system tracks these canonical regions:

* `HEAD`
* `TORSO`
* `LEFT_ARM`
* `RIGHT_ARM`
* `LEFT_LEG`
* `RIGHT_LEG`

Each region stores `damage` between `0-100`. Severity is derived from the thresholds in `config.medical.injuries.severityThresholds`.

## Facility Config

File: `config/facility.lua`

This file controls the hospital facility panel and runtime systems:

* facility panel command, item, keybind, and allowed groups
* facility map blips
* garages and helicopter pads
* NPC doctors
* hospital beds
* market and pharmacy points
* usable medical bag inventory
* prescriptions
* facility billing, invoice presets, and paid invoice deposits
* shared and personal stashes
* blood tests
* MR / X-Ray scans
* doctor-operated treatment panel
* target/textui runtime interaction behavior

The default market includes `medbag`. The usable med bag is configured at `runtime.medBag`; by default it opens a free shop-style inventory populated from `runtime.market.items`, excluding the med bag item itself.

Default facility panel access:

```lua
panel = {
    active = true,
    allowedGroups = { "admin", "god" },
    openWithCommand = {
        active = true,
        command = "facilitypanel",
    },
    openWithItem = {
        active = true,
        itemName = "facility_panel",
    },
    openWithKey = {
        active = true,
        key = "F6",
    },
}
```

## Ambulance Vehicle Config

File: `config/ambulance_vehicle.lua`

This file controls:

* ambulance vehicle metadata and state bag keys
* target/textui interaction mode
* interior coordinates and routing bucket base
* vehicle exit behavior
* stretcher model, carrying offsets, and patient placement
* body bag offsets
* supported vehicle models and rear door indices

The default supported model is `ambulance`.

## Hotbar Config

File: `config/hotbar.lua`

Hotbar-specific configuration is documented separately:

{% content-ref url="/pages/CIPoKy5Cfj5fMRMe49g8" %}
[Hotbar](/0resmon/0r-resources/0r-ambulancejob/hotbar.md)
{% endcontent-ref %}

## Inventory Integration

The resource supports `ox_inventory`, `qb-inventory`, QB/QBX inventory helpers, and ESX inventory flows natively.

If you use a custom inventory, set:

```lua
Config.useCustomInventory = true
```

Then integrate the inventory abstraction in `modules/inventory/*` for your inventory resource.


---

# 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.0resmon.org/0resmon/0r-resources/0r-ambulancejob/configuration.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.
