Exports

Export namespace

All exports use:

exports['envi-prescriptions']

Client exports

Medication and overdose

exports['envi-prescriptions']:StartOverdose()
exports['envi-prescriptions']:StopOverdose()
exports['envi-prescriptions']:DrugTaken(amount)
  • StartOverdose() forces the overdose state.

  • StopOverdose() clears it.

  • DrugTaken(amount) increases the internal drug load.

Pharmacy and panic flows

exports['envi-prescriptions']:TriggerPanicButton(coords)
exports['envi-prescriptions']:OpenPharmacySuppliesMenu()
exports['envi-prescriptions']:OpenPharmacyEmployeeMenu()
exports['envi-prescriptions']:SetActivePatientSource(source)

Use these for panic dispatch, staff supply UI, staff computer UI, and patient-targeted staff actions.

Insurance flows

These cover local insurance checks, plan details, self-service UI, claim history, broker UI, and customer targeting for broker sales.

Config access

Server exports

Medication helpers

Use these when another script needs to issue medication with proper metadata.

Insurance helpers

Supplies

This returns true if stock was reduced.

It returns false if the pharmacy had no stock to reduce.

Records

Quick examples

Reduce stock when issuing medication

Open the employee computer

Sell insurance through a broker

Last updated