> ## Documentation Index
> Fetch the complete documentation index at: https://docs.megaworks.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Hospitals.lua

> Configure hospitals and NPC Doctors

Located in `shared/config/hospitals.lua`, this file allows you to define blips, locations, and NPC Doctors for automated treatments.

## Properties

* `displayName`: The name of the hospital location.
* `showBlip`: `boolean` to determine if the map blip should be visible.
* `blipSprite`: The hash of the sprite used on the map.
* `coords`: Center `vector3` coordinates of the hospital.
* `radius`: The radius dimension for the hospital zone.
* `jobId`: The society/company identifier (if using `syn_society` or `mega_companies`). Put `nil` if not needed.

### NPC Doctor Properties

Located inside the `npc` table:

* `enabled`: `boolean` enabling the NPC at this location.
* `jobs`: A table of job IDs. If a player with any of these jobs is currently online, the NPC Doctor will be disabled.
* `healCost`: The deduction cost to heal a player.
* `reviveCost`: The deduction cost to revive an unconscious player.
* `reviveTime`: Treatment duration (in seconds) to revive.
* `npcModel`: The string model of the NPC ped (e.g., `'CS_DrMalcolmMacIntosh'`).
* `coords` & `heading`: Position and orientation of the NPC.
* `range`: The interaction distance.
* `excludedDiseases`: A table list of diseases this specific NPC cannot heal. (e.g. `{'cold', 'malaria'}`)

## Example Configuration

```lua theme={null}
Config.hospitals = {
    ['Saint Denis Hospital'] = {
        displayName = 'Saint Denis Hospital',
        showBlip = true,
        blipSprite = -1739686743,
        coords = vector3(2725.86, -1227.72, 50.36),
        radius = 20.0,
        jobId = 'doctor',
        npc = {
            enabled = true,
            jobs = { 'doctor' },
            healCost = 5.0,
            reviveCost = 5.0,
            reviveTime = 30,
            npcModel = 'CS_DrMalcolmMacIntosh',
            coords = vector3(2721.34, -1231.71, 49.36),
            heading = 90.0,
            range = 2.0,
            excludedDiseases = {}
        }
    }
}
```
