# How To Use

## Healing System

Script includes Damages System which register every damage for player. As Medic you can check player injuries with using Target. It will open Healing Menu for you.

<figure><img src="https://3808595786-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWtp2CzACAMvuPWbeJ3cy%2Fuploads%2FQLz06Woxws0phDpad4EU%2Fhealing_guide.png?alt=media&#x26;token=c5af2f02-7bfb-4a83-9ca4-874befabd1e4" alt=""><figcaption></figcaption></figure>

***

## Pulse System

Script randomize value between minPulse and minPulse + 30 and set it to player pulse when he joins

```lua
---@class Config.Pulse
---@field enabled boolean [enable pulse feature?]
---@field minPulse number [default minimum pulse value]
---@field maxPulse number [default maximum pulse value]
---@field critical table {enabled: boolean, chance: number, requiredInjuries: number, pulse: table<number>} [critical pulse settings]
--- Info: Pulse will decrease when player get injuries and increase when player heal injuries
--- Info: When player is in death/bleeding state there is a chance to get critical pulse value
Config.Pulse = {
    enabled = true,
    minPulse = 70, 
    maxPulse = 200,
    critical = {
        enabled = true,
        chance = 10, -- 10% chance to get critical pulse when in death/bleeding state
        requiredInjuries = 10, -- required number of injuries to get critical pulse
        pulse = {35, 50}, -- pulse value when critical [script will choose 35 or 50]
    }
}
```

When player has required amount of injuries, there is chance to get Critical Pulse.&#x20;

{% hint style="warning" %}
You will NOT be able to heal player injuries when Pulse is NOT stable.
{% endhint %}

To stabilize player pulse you need to use Defibrilator, place it next to him by using item. Attach Defibrilator to this player and Use It. Script will start mini-game. Player pulse will stabilize when u finish game successfully.

***

## Temperature System

Script randomize value between minTemperature and maxTemperature and set it to player pulse when he joins.

```lua
---@class Config.Temperature
---@field enabled boolean [enable temperature feature?]
---@field minTemperature number [minimum temperature]
---@field maxTemperature number [maximum temperature]
---@field items table<string, number> [list of items that can affect temperature and their effect value]
---@field critical table {enabled: boolean, chance: number, requiredInjuries: number, temperature: table<number>} [critical temperature settings]
--- Info: Temperature will decrease when player get cold items and increase when player get hot items
--- Info: When player is in death/bleeding state there is a chance to get critical temperature value
Config.Temperature = {
    enabled = true,
    minTemperature = 36.0, -- minimum temperature
    maxTemperature = 38.0, -- maximum temperature
    items = {
        ['icepack'] = -0.5, -- icepack will reduce temperature by 0.5
        ['antipyretics'] = 0.5, -- antipyretics will increase temperature by 0.5
    },
    critical = {
        enabled = true,
        chance = 10, -- 10% chance to get critical temperature when in death/bleeding state
        requiredInjuries = 10, -- required number of injuries to get critical temperature
        temperature = {32.0, 41.0}, -- temperature value when critical [script will choose 34.0 or 42.0]
    }
}
```

When player has required amount of injuries, there is chance to get Critical Temperature of Body.&#x20;

{% hint style="warning" %}
You will NOT be able to heal player injuries when Temperature is NOT stable.
{% endhint %}

To stabilize player temperature you need to use items for increasing/decreasing temperature in Healing UI on this green square.

<figure><img src="https://3808595786-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWtp2CzACAMvuPWbeJ3cy%2Fuploads%2FpEMO63rpaP8B7dP9XbTN%2Fimage.png?alt=media&#x26;token=3ff30db0-821b-4010-b58d-2bb1b7387968" alt=""><figcaption></figcaption></figure>

***

## Outfits System

Script includes in-built Outfit System with Creator

### Open Outfit Creator

This command will open outfit creator in ambulance job

```lua
/medicOutfit
```

### Remove Outfit Menu

This command will open menu where you can select outfits to remove

```lua
/removeMedicOutfit
```

{% hint style="warning" %}
You NEED to set permissions for these commands in Config!
{% endhint %}

```lua
---@class Config.Outfits
---@field enabled: boolean [enable outfits feature?]
---@field access table<{[jobName]: grade}> [which jobs and grades are allowed to create outfits]
Config.Outfits = {
    enabled = true,
    access = {
        ['ambulance'] = 0
    }
}
```

***

## TV Terminal System

Script includes Terminal on TV's which medics can use to alert other medics about incoming patient

### Open Terminal

This command will open terminal menu where you can choose tv and set data

```lua
/openTerminal
```

### Clear Terminal

To clear terminal, you need to use Target on TV Prop and click Clear Terminal option
