Troubleshooting
Fixes for the usual Prescriptions problems.
First step for almost anything: check the server console on start. Missing items, bad job names, and failed bridges all show up there.
Install and start-up
| Symptom | Check |
|---|---|
| Doctor gets an "invalid job" notice | Their job is not listed under Who can write a script in the panel, or they are under that job's rank |
| Pharmacy tablet or register does nothing | The staff member is not clocked in, they are under the rank set for that station, or the pharmacy's job on the Shops page does not match your framework job |
| NPC pharmacist menu is empty | The patient needs a valid, unrevoked paper. See "The pharmacy menu is empty" below |
Console prints [MrNewbPrescriptions] N new medicines are waiting for their items: ... | Those medications are not in your inventory yet, so they are not added to your pharmacy. Paste the items from [INSTALL]/items, copy their images, then restart this resource |
| Props are missing, or the bench and cabinet do not appear | The streamed props register through the manifest. Run refresh, then restart the resource. A restart alone keeps the old manifest |
| 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 |
The paper does not open or print
- The item names must exist in your inventory and match the ones on the Scripts page under Item names. Look for "item not found" lines at start
- The doctor's job must be listed under Who can write a script, at or above their rank. Otherwise they get an "invalid job" notice
- A
medicalprescriptionspawned from an admin menu has no metadata and does nothing. Real papers come from the pad - Printing a
medicalrecordfrom the tablet needs the item and room in the inventory, plus a clock-in and the pharmacy rank for the tablet - The
/prescriptioncommand only exists when the Chat command setting on the Scripts page allows it
A script cannot be filled
The message says why. The usual reasons:
- It was revoked, from the tablet or with the
RevokePrescriptionexport - It expired. The Script valid for setting on Scripts sets the days
- It is a refill that is not due yet. Wait between refills sets the delay
- At an NPC counter, it was written for someone else. Turn Papers belong to their patient off if you do not want that
- The patient cannot afford it
- It is an unverified fake at an NPC counter
The pharmacy menu is empty
- The NPC menu lists only papers you are carrying for a medication that exists. Bring a valid, unrevoked
medicalprescription - That medication has to be in the catalog. Check the spelling, and that a runtime-registered one was registered before use
- The NPC steps aside while pharmacy staff are on the clock. Use the counter, or turn off the Steps away when staff are in setting under The clerk on Scripts
- An unverified forged paper is rejected at NPC counters unless A clerk fills an unverified fake is on under Fake scripts
- Stand within a few meters of the ped
Insurance is not charging or not discounting
- Insurance must be turned on, on the Plans page
- The register applies a copay only when a medication is on the ticket. A general charge is full price, and so is a ticket with more than one medication
- With This script handling the policy, the customer needs active coverage. It ends after the idle days set on Plans
- With Another script, make sure that resource is running and the bridge file is the one you chose
- Buying a plan fails if the player cannot afford it, and they see a failure alert on screen
- To send plan money to a society, set the business that keeps the premium on Plans (this script only)
The register says the charge did not go through
The customer has to approve within 60 seconds, only one bill can be pending per customer, they need enough in the chosen account, and the amount cannot be over the Highest bill on The till or the medication's list price. The pharmacist sees an alert, so check the amount and try again.
The time clock does nothing
- Stand at the clock point, within a few meters, with the pharmacy job at or above the rank set for the shop
- The pharmacy's job on the Shops page has to match the framework job
- The register, bottling, the medical cabinet, supply runs, and the panic button all need a clock-in
Bottling does not work
- You need to be clocked in, at the pharmacy rank, and at the bench
- Ingredients must be in the pharmacy stock room, not just in your pockets. Order them with a supply run
- A controlled medication needs the Controlled medication mixing rank
- Make sure another resource's menu is not holding NUI focus. Close it and retry
The medical cabinet is empty or will not take a bottle
- The cabinet reads the stock room, so a bottle only shows once it has been stored there
- Only full, unused bottles can be stored. Part-used ones are refused
- You need to be clocked in
A blank screen, or old screens, after an update
- Confirm
web/build/index.htmlandweb/build/assets/both exist - Replace the whole
web/buildfolder andlocales/en.jsontogether. New screens readUi.*keys that older locale files do not have - Run
refresh, thenrestart MrNewbPrescriptions. If it is still stale, restart the server or clear the FiveM cache
Raw text like Ui.Insurance.Failed shows on screen
Your locale file is missing keys. Copy the new ones from locales/en.json, and check that setr ox:locale matches the file you edited.
Pictures are missing in the inventory or on the bench
Copy every PNG from [INSTALL]/images/ into your inventory images folder and keep the names. Each custom medication needs <itemname>.png. Restart the inventory after copying.
Medications do not heal with my ambulance job
Med heals load automatically from resource/open/bridge/ambulancejobs/ when that job is running. For insurance on hospital bills and clearing overdoses on revive, follow Ambulance jobs.
Settings that need a restart
Most of /setupprescriptions applies when you press Save. These need more:
| Change | What to do |
|---|---|
| New medications from an update | Paste the new items from [INSTALL]/items, copy their images, then restart the resource. They are only added once their items exist. The console lists any still waiting |
| A medication you add yourself | Its item has to exist in your inventory first. Restart after adding it |
| A renamed item | The new name works straight away. The old one stays usable until the server restarts |
| New or changed streamed props | Run refresh, then restart the resource |
Edits to the Lua files in resource/open/ | Restart the resource |
Settings that clash
| What you see | Why it happens |
|---|---|
| Insurance does not lower a bill | It only applies when a single medication is picked at the register. A general charge is full price |
| The NPC pharmacist is gone | It steps aside while real pharmacy staff are on the clock. Turn that off in the Steps away when staff are in setting if you want it always there |
| Billing, supply runs, bottling or the panic button work without clocking in | Debug mode is on and the server has the mrnewbrx_debug_bypass convar set to 1. Both are needed to skip the clock-in check. Leave them off on a live server |
| The pad writes the script to yourself | Debug mode or Debug: write scripts to yourself is on. Either one sends the script to you instead of a nearby patient |
Scripts that call Prescriptions
| Symptom | Check |
|---|---|
| A medication registered from another script is missing | Register it before it is used, and make sure its item exists in your inventory |
| A prescription needs to be revoked from code | Use the RevokePrescription export. The tablet's Dispensing History can also revoke one |
| Hospital bills ignore insurance | Your ambulance job needs the extra edit on Ambulance jobs |
Support
Include your framework, inventory, ambulance job, and any console errors from this resource on start. With Debug mode on, /staffdebug copies the provider report to your clipboard, and the Export or import box on the panel gives a full copy of your settings.
