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

# Envi-Medic

Envi-Medic Official Documentation

***

## Prerequisites

{% hint style="info" %}

* A working FiveM Server
* Basic understanding of FiveM server setup and resource management
* An up-to-date version of [ox\_lib](https://github.com/CommunityOx/ox_lib)
* Followed the [First Steps](/documentation/premium-scripts/first-steps-read-first.md) guide
* Envi-Bridge (added to your CFX Portal automatically when Medic is purchased)
  {% endhint %}

***

## [Tebex](https://envi-scripts.tebex.io/package/5969648)

***

{% hint style="warning" %}
This script is ONLY an AI medic script. It's not a full job, nor is it a replacement for a full EMS script. This is really meant to give players an immersive revival experience if there's not enough human EMS players online to fulfill that role.

This also does not do any reviving on its own. It requires an ambulance/ems script to function properly as the revive event in Envi-Medic just tells your actual ambulance script to revive the player.
{% endhint %}

## Features

* Immersive AI Doc revivals with synced animations
* Failsafe system to guarantee the player is always revived regardless of where they died
  * Medics will ignore calls where players are under water, ensuring realistic roleplay ocean dumping
* Configurable job roles where those jobs can call an AI Medic for downed players
* Players can also call for a medic themselves
* Intelligent ambulance spawning
* Ability to limit AI Medic command to specific job roles
* Customize the ambulance and medic models to your liking
* Configure multiple drop off locations
  * Medic will take players to the nearest drop off
* Flexible payment options for Medic services
* Skill based minigames
  * Configuration to have players play a minigame on revival
  * If they fail they will be taken to the hospital
  * If they succeed they will be revived on the spot and the Medic will leave
* Invincibility options for the medic and ambulance
* Add blacklisted areas where the AI Medic will refuse to service
* Different costs based on succeeding or failing the skillcheck on revive
  * Only really matters if you're using the minigame skillcheck on revive

### Install

1. Follow [FIRST STEPS (READ FIRST)](/documentation/premium-scripts/first-steps-read-first.md).
2. Start `envi-bridge` before `envi-medic`.
3. Start every extra dependency from `fxmanifest.lua` before the resource.
4. Make sure your actual ambulance script revive event is configured correctly.

### What you can tune

* call and cancel commands
* failsafe timers
* drop-off and hospital behavior
* item removal on revive
* vehicle fuel and key compatibility

### Quick troubleshooting

* If medics get stuck, start with your failsafe settings.
* If transport should be disabled, use the dedicated transport guide.
* If another ambulance script conflicts, use the dedicated compatibility page.
* If players cannot call a medic, check phone requirements, job checks, and cooldowns.
* If medics are not visible in vehicles, try another medic ped model.

### See also

* [Common Issues](/documentation/premium-scripts/envi-medic/common-issues.md)
* [Fully Disable Transport to Hospital](/documentation/premium-scripts/envi-medic/fully-disable-transport-to-hospital.md)
* [Failsafe](/documentation/premium-scripts/envi-medic/failsafes.md)
* [Ambulance Scripts](/documentation/premium-scripts/envi-medic/ambulance-scripts.md)
* [Exports](/documentation/premium-scripts/envi-medic/exports.md)

***

## Preview

{% embed url="<https://www.youtube.com/watch?v=8_n2F42Q6DY>" %}
