# Configuration

This page explains how to configure the **Enyo immigration checkpoint simulator job** to fit your FiveM server.

#### Notification System

```lua
Config.notify = false
```

Enable or disable in-game notifications.

***

#### Language Selection

```lua
Config.language = English
```

Supported languages:

* Arabic
* Chinese
* German
* English
* Spanish
* French

> ⚠️ Do **NOT** use quotes for the language value.

***

### Job Access & Start Method

Controls **how players start the medical job** and who can access it.

#### Job Start Method

```lua
Config.JobStartMethod = "STANDALONE"
```

| Method       | Description                        |
| ------------ | ---------------------------------- |
| `STANDALONE` | Walk into a marker and press **E** |
| `command`    | Start via chat command             |
| `oxtarget`   | Use ox\_target interaction         |
| `qbtarget`   | Use qb-target interaction          |

***

#### Command Name (if using command)

```lua
Config.JobStartCommand = "startdoctorshift"
```

Only used if `JobStartMethod = "command"`.

***

#### Job Restriction

```lua
Config.useJobCheck = false
Config.RequiredJob = 'ambulance'
```

* `false` → Anyone can play
* `true` → Only players with the specified job can start

***

#### Shift Limits

```lua
Config.useLimitedShifts = false
Config.shiftsPerDay = 3
```

* Limit how many shifts a player can do per restart
* Useful for economy balancing

***

### Gameplay & Rewards

Configure **time, payouts, and penalties**.

#### Shift Duration

```lua
Config.ShiftDuration = 300
```

Time (in seconds) to complete one examination.

***

#### Correct Diagnosis Reward

```lua
Config.CorrectReward = {500, 1500}
```

Random reward between **minimum** and **maximum** values.

***

#### Death Penalty

```lua
Config.DeathPenalty = 500
```

Money deducted if the patient dies.

***

### Patient Configuration

Customize **NPC appearance and names**.

#### Patient Models

```lua
Config.PatientModels = { "a_m_m_afriamer_01", "a_f_y_beach_01", ... }
```

List of ped models randomly chosen for patients.

***

#### Patient Names

```lua
Config.PatientNames = { "J.", "M.", "P.", "R." }
Config.PatientSurnames = { "Smith", "Johnson", "Williams" }
```

Used for medical records and immersion.

***

### Locations & Props

Defines **all in-game positions**, cameras, and equipment.

#### Core Locations

* Job start marker
* Doctor position
* Patient spawn & exit
* Stretcher spawn
* Light source

Example:

```lua
jobStart = vector3(355.44, -596.25, 28.77)
```

***

#### Camera Settings

Controls examination camera:

```lua
cameraPosition = vector3(...)
cameraRotation = vector3(...)
```

***

#### Medical Equipment Positions

Each item defines:

* Spawn position
* Rotation
* Camera focus when used

Example:

```lua
pulseOximeter = {
    position = vector3(...),
    rotation = vector3(...),
    toCamPos = vector3(...),
    toCamRotation = vector3(...)
}
```

***

#### Equipment Models

```lua
Config.EquipmentModels = {
    lamp = `v_corp_cd_desklamp`,
    thermometer = `thermometer_prop_01`,
}
```

⚠️ **Keys must match `Config.Positions`**

***

### Medical System – Core Customization

This section defines **treatments, symptoms, and diseases**.

***

#### Treatments

Each treatment includes:

* Name (must be unique)
* Type (`pill` or `syringe`)
* Prop model
* Spawn position & rotation

Example:

```lua
{
    name = "Cefotaxime",
    type = 'pill',
    model = `prop_cs_pills`
}
```

***

#### Visual Symptoms (Animations)

Used to **visually represent patient conditions**.

Types:

* `clipset` → walking style
* `animation` → looping or timed animation

Example:

```lua
coughing = {
    type = "animation",
    dict = "...",
    data = "idle_cough",
    pain = 19
}
```

Includes:

* Audio pain reactions
* Loop timing
* Animation flags

***

#### Medical Conditions (Diseases & Injuries)

Each condition defines:

* Vital signs
* Visual symptoms
* Correct treatment
* Body scanner results
* Time until death if untreated

Example:

```lua
{
    name = "Viral Pneumonia",
    treatment = "Ribavirin",
    deathTime = {min = 150, max = 240}
}
```

Categories included:

* Viral infections
* Bacterial infections
* Inflammatory diseases
* Trauma injuries

***

### Miscellaneous Settings

#### Camera Field of View

```lua
Config.CameraFOV = 49.0
```

Controls zoom level during examinations.

***

#### Radio Stream

```lua
Config.radioStream = 'https://fallout.fm:8444/falloutfm1.ogg'
```

Plays ambient audio from the radio prop.


---

# 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://enyo-scripts.gitbook.io/documentations/fivem-scripts/doctor-simulator-job/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.
