Exports

Pharmacy Supply System Exports

Server Side Exports

reducePharmacySupplies(pharmacyId)

Reduces the supplies at a pharmacy when medications are given out. Returns true if supplies were available and reduced, false otherwise.

local hasSupplies = exports['envi-prescriptions']:reducePharmacySupplies(1)

Client Side Exports

OpenPharmacySuppliesMenu()

Opens the pharmacy supplies management menu for staff.

exports['envi-prescriptions']:OpenPharmacySuppliesMenu()

OpenPharmacyEmployeeMenu()

Opens the pharmacy employee computer interface.

exports['envi-prescriptions']:OpenPharmacyEmployeeMenu()

Insurance System Exports

Server Side Exports


HasMedicalInsurance(source)

Returns a boolean indicating if the player has any active insurance plan.


GetPlayerInsurance(source)

Returns complete insurance details for a player.


GetInsuranceClaimHistory(source)

Returns a player's insurance claim history.


PurchaseInsurance(source, planId)

Attempts to purchase an insurance plan for a player. Returns true on success, false otherwise.


CancelInsurance(source)

Cancels a player's current insurance plan. Returns true on success, false otherwise.


SellInsuranceThroughBroker(brokerId, customerId, planId)

Allows a broker (insurance salesperson) to sell insurance to another player. Returns true if successful.


IsPlayerBannedFromInsurance(citizenid)

Checks if a player is banned from purchasing insurance.


Client Side Exports

HasMedicalInsurance()

Returns a bool - if the player has any active insurance plan.


GetInsuranceDetails()

Returns complete insurance details for the player.


OpenInsuranceMenu()

Opens the insurance menu for the player.


GetClaimHistory()

Returns the player's insurance claim history.


OpenInsuranceBrokerMenu()

Opens the insurance broker menu for selling insurance to other players.


Prescription Records Exports

Server Side Exports


FlagPrescriptionRecord(recordId, reason, source)

Flags a prescription record for review.


GetDoctorPrescriptionRecords(doctorIdentifier)

Gets all prescription records for a specific doctor.

Last updated