Installation

How to install Prescriptions. Start it after ox_lib, oxmysql, your framework, your inventory, and Newb_Bridge.

In-development version. These docs cover the testing build of Prescriptions. The official release is still documented on the GitBook linked in its README.

Start this after ox_lib, oxmysql, your framework, your inventory, Newb_Bridge, and your ambulance job (if you use one).

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 MrNewbPrescriptions

First 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
  • /prescriptionssetup opens 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
  • Debug and every Test* command are off

Commands: Commands. Walkthrough of the player flow: How it plays.

Common setup mistakes

SymptomCheck
Doctor gets an "invalid job" noticeTheir job is not listed under Medical jobs in the panel, or they are under the grade floor
Pharmacy tablet or register does nothingThe staff member is not clocked in, or Job.jobName does not match your framework job
NPC pharmacist menu is emptyThe patient needs a valid, unexpired, unrevoked paper. See Troubleshooting
Paper does nothing when usedIt was spawned without metadata. Real papers come from the pad
Bottling cannot find ingredientsIngredients must be in the pharmacy stock room, not in someone's pockets
Raw keys like Ui.Insurance.Failed on screenYour locale file is missing keys. Copy the new ones from locales/en.json
Blank screen after an updateReplace web/build/ and locales/en.json together, then restart the resource
Shot glass props deletedAllow the models on Anticheat models

On this page