Installation
Get Prescriptions running: unzip it, add the job and items, add it to server.cfg, then set up your pharmacies in game.
You need Newb_Bridge, ox_lib 3.40.2 or newer, oxmysql, and a framework and inventory the bridge supports. Start Prescriptions after all of them, and after your ambulance job if you use one. The full list is on Requirements.
Unzip it
Put the MrNewbPrescriptions folder in your resources folder. The tables are created for you the first time it starts, so there is no SQL file to import.
Add the pharmacy job
Player-run pharmacies need a job in your framework. Add it from Pharmacy job. It takes a couple of minutes.
Add the items
Paste the list for your inventory from Item setup, then copy the pictures from Item images. Lists ship for ox_inventory, qb-core, one_inventory and Kora.
Add it to server.cfg
ensure ox_lib
ensure oxmysql
ensure qbx_core # or qb-core / es_extended
ensure ox_inventory # or your inventory
ensure Newb_Bridge
ensure qbx_medical # your ambulance job (or MrNewb_Medical), optional
ensure MrNewbPrescriptionsRefresh and restart
The resource streams its own props, which register through the manifest. Run refresh in the server console, then restart the server, and watch the console. Every item missing from your inventory gets a line, so fix those before you go live. Then join as an admin and type /setupprescriptions. A short guide plays the first time. Point each pharmacy at your job, place the stations (clock-in, bottling bench, medical cabinet, register, office, panic button, delivery van) and check the medication list. Configuration explains each page.
If you are updating from a version that had addiction, the old prescription_addiction table is dropped on this first start.
Check it works
Before you open up, make sure:
- The console shows no red errors and no missing item lines
-
/setupprescriptionsopens for an admin - A doctor can write a script and the paper opens when used
- Staff can clock in, bottle a script and ring up a customer, and the customer can accept
- The bench, cabinet and bottles show up (if not, run
refreshand restart again) - Debug mode and every test command are off
Where next
- Configuration: what every setup page does
- How it plays: the player flow from start to finish
- Commands: staff and doctor commands
- Pharmacy job: the job and who can do what
- Troubleshooting: the usual problems and fixes
