> 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-prescriptions.md).

# Envi-Prescriptions

Envi-Prescriptions Official Documentation

{% hint style="warning" %}
The script comes through the CFX Portal as `envi-prescriptions-esx` however **this works on the three major frameworks by default**

You cannot change the name of a resource once it's been uploaded to the Portal, and this was originally uploaded as an ESX exclusive version. It has since evolved to utilize Envi-Bridge, which is what allows this to work on all three major frameworks
{% endhint %}

***

## 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 (READ FIRST)](/documentation/premium-scripts/first-steps-read-first.md) guide
* `envi-bridge`
* A working SQL layer through your bridge or `oxmysql`
* Inventory support for item metadata
* Optional target support if `Config.Target = true`
  {% endhint %}

***

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

***

## What this adds

Envi-Prescriptions is a medical RP stack for prescription writing, pharmacy collection, insurance, supplies, and overdose gameplay.

Core systems:

* prescriptions through item use or command
* medication metadata and pricing
* pharmacy collection and employee actions
* insurance plans, claims, and broker sales
* supply and restock missions
* shoplifting with bans
* employee computer and prescription records
* lean crafting, overdose, and narcan flows
* target or zone and TextUI interaction modes

### Install

{% stepper %}
{% step %}

### Follow the base load order

Follow [FIRST STEPS (READ FIRST)](/documentation/premium-scripts/first-steps-read-first.md) for the correct load order.

Then verify `ox_lib`, your SQL layer, your inventory, and your optional target resource are already running before you test this resource.
{% endstep %}

{% step %}

### Set the live flags

Review these first:

* `Config.TestMode = false`
* `Config.Debug = false`
* `Config.Target`
* `Config.PayIntoSociety`
* `Config.PayIntoInsuranceSociety`
* `Config.ServerSidePeds`
  {% endstep %}

{% step %}

### Align jobs and locations

Match your doctor, pharmacy, and broker jobs to config.

If you changed maps, move all pharmacy ped, counter, restock, kiosk, and shelf coordinates.
{% endstep %}

{% step %}

### Register the items

Add the pad, prescription item, medications, lean chain, and narcan-related items.

Your inventory must support metadata on these items.
{% endstep %}
{% endstepper %}

### Register these items

Common default items:

* `prescription_pad`
* `prescription`
* `adrenaline`
* `oxy`
* `xanax`
* `steroids`
* `valium`
* `cough_syrup`
* `sprunk_bottle`
* `lean_cup`
* `lean`
* your configured narcan item

Detailed examples live on [Inventory Setup](/documentation/premium-scripts/envi-prescriptions/inventory-setup.md).

### Docs in this section

* [First Time Setup](/documentation/premium-scripts/envi-prescriptions/systems-overview.md)
* [Common Issues](/documentation/premium-scripts/envi-prescriptions/common-issues.md)
* [Inventory Setup](/documentation/premium-scripts/envi-prescriptions/inventory-setup.md)
* [Systems Overview](/documentation/premium-scripts/envi-zone-tool/permanent-props-and-peds.md)
* [Change Dosage Options](/documentation/premium-scripts/envi-prescriptions/change-dosage-options.md)
* [Side Effects](/documentation/premium-scripts/envi-prescriptions/side-effects.md)
* [Exports](/documentation/premium-scripts/envi-prescriptions/exports.md)
* [Editable Functionality](/documentation/premium-scripts/envi-prescriptions/editable-functionality.md)

### Good first checks

* Wrong jobs seeing menus usually means a job or grade mismatch.
* Empty insurance UI usually means insurance config or broker setup is incomplete.
* If pharmacist peds do not show, review the server-side ped toggle.
* If prescription metadata is wrong, check inventory metadata support first.

### Optional boss computer add-on

If you use the boss computer add-on, keep the base load order from [FIRST STEPS (READ FIRST)](/documentation/premium-scripts/first-steps-read-first.md).

Then start the add-on after:

1. `envi-computer`
2. `envi-prescriptions`

What it adds:

* computer-based boss and employee menus
* prescription context inside Envi-Computer
* optional employee app visibility toggle

Common checks:

* if the computer is empty, check the base prescriptions resource first
* if the UI is blank, confirm the packaged `web/build/` files were uploaded
* use documented computer flows instead of undocumented internal events

### See also

* [Systems Overview](/documentation/premium-scripts/envi-zone-tool/permanent-props-and-peds.md)
* [Exports](/documentation/premium-scripts/envi-prescriptions/exports.md)
