Installation
How to install Prescriptions. Start it after ox_lib, oxmysql, your framework, your inventory, and Newb_Bridge.
Start this after ox_lib, oxmysql, your framework, your inventory, Newb_Bridge, and your ambulance job (if you use one).
Dependencies
Newb_Bridge, ox_lib, oxmysql, and Server artifact and OneSync. Details: Requirements.
Add the pharmacy job
Player-run pharmacies need a real job in your framework. Add it now, then come back. Takes two minutes: Pharmacy job.
Add the items and images
Paste the items from Item setup and copy the PNGs from [INSTALL]/imgs/ into your inventory images folder. Icons: Item images.
Add to server.cfg
Swap in whatever framework and inventory you run.
ensure ox_lib
ensure oxmysql
ensure qbx_core
ensure ox_inventory
ensure Newb_Bridge
ensure qbx_medical # your ambulance job, optional
ensure MrNewbPrescriptionsFirst start
Start the server once. The tables are created for you: pharmacy stock, the audit log, doctor records, addiction, insurance, and the settings table MrNewb__Settings. There is no SQL file to import.
Watch the console. Every config item missing from your inventory gets a line. Fix those before you go live.
Set it up in game
Join as an admin and run /prescriptionssetup. A short guide plays the first time. Point each pharmacy at your job, place the stations, and check the medication list. What every page does: Configuration.
Check it works
Run through this once before you open up:
- The resource starts with no red errors, and no "item not found" lines
-
/prescriptionssetupopens 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
- The customer sees the approval prompt and can accept it
-
Debugand everyTest*command are off
Commands: Commands. Walkthrough of the player flow: How it plays.
Common setup mistakes
| Symptom | Check |
|---|---|
| Doctor gets an "invalid job" notice | Their job is not listed under Medical jobs in the panel, or they are under the grade floor |
| Pharmacy tablet or register does nothing | The staff member is not clocked in, or Job.jobName does not match your framework job |
| NPC pharmacist menu is empty | The patient needs a valid, unexpired, unrevoked paper. See Troubleshooting |
| Paper does nothing when used | It was spawned without metadata. Real papers come from the pad |
| Bottling cannot find ingredients | Ingredients must be in the pharmacy stock room, not in someone's pockets |
Raw keys like Ui.Insurance.Failed on screen | Your locale file is missing keys. Copy the new ones from locales/en.json |
| Blank screen after an update | Replace web/build/ and locales/en.json together, then restart the resource |
| Shot glass props deleted | Allow the models on Anticheat models |