Item setup
Items for Prescriptions. Paste the file for your inventory, copy the PNGs, and restart.
Item lists ship in [INSTALL]/items/ for ox_inventory, qb-core, one_inventory and Kora. Open the one for your inventory, paste the whole thing into its item file, copy the PNGs from [INSTALL]/images/, then restart the inventory and this resource.
| Inventory | File in [INSTALL]/items/ | Paste into |
|---|---|---|
| ox_inventory | ox_inventory_items.txt | ox_inventory/data/items.lua |
| qb-inventory / ps-inventory | qb-core_items.txt | qb-core/shared/items.lua, inside the shared items table |
| one_inventory | one_inventory_items.txt | A server script that starts after one_inventory. The file's header says how |
| Kora (kora_inventory) | kora_items.txt | The KoraCoreSeed.items table in kora_core/shared/items.lua |
| Inventory | Image folder |
|---|---|
| ox_inventory | ox_inventory/web/images/ |
| qb-inventory / ps-inventory | html/images/ |
| one_inventory | one_inventory/web/images/ |
| Kora (kora_inventory) | kora_inventory/images/ |
one_inventory: pin the inventory to one_inventory in Newb_Bridge's resource settings instead of leaving it on auto. one_inventory provides itself as ox_inventory and is not fully compatible with its image paths, so on auto the item images do not load. See Newb_Bridge configuration.
Pictures in the bottling bench and pharmacy tablet are found by item name (<item>.png), so keep the file names as they are.
On start the console prints a line for every config item your inventory is missing.
What you need
| Item | Needed? | What it is |
|---|---|---|
prescriptionpad | Yes | Doctors write scripts with it |
medicalprescription | Yes | The signed paper patients carry to the pharmacy |
medicalrecord | Yes | A printed dispense record |
emptybottle, pillbinder, humaneextract, redwoodleaf, gingeroot, chiliadchili, sprunksyrup, meteoritepowder | Yes for the stock catalog | Recipe ingredients, and what supply runs deliver |
pillboxpatch, redwoodrelief, stretchyum, chiliadburn, mollis, zombix, willies, spacecadet, mazenap, humaneorbit, upnatom, vinewoodglow, altruistcrystal, breezeeasy, clotstop, pillboxmend, delperrocalm, beachboost, eagledrops, cluckchews, coldcrusher, steadyheart, altaamoxi, adrenajet, weazelwake | Yes for the stock catalog | One item per medication |
insurancecard | Optional | Handed out when someone buys a plan |
blankpaper | Optional | Used at the forgery desk for blank fakes (alongside a prescription pad) |
boxofaspirin, boxofpseudoephedrine, bandage | Optional | Shoplifting loot. Skip bandage if your framework already has one |
The names the script looks up (pad, paper, record, blank paper) are set under Item names on the Scripts page of the setup panel, so you can rename them there. The insurance card item is set on Plans.
The core three
These are the items that matter most. The full file has all the rest.
['prescriptionpad'] = {
label = 'Prescription pad',
weight = 100,
stack = false,
close = true,
description = 'Doctor prescription pad. Use to write a new prescription.',
client = { image = 'prescriptionpad.png' },
},
['medicalprescription'] = {
label = 'Medical prescription',
weight = 50,
stack = false,
close = true,
description = 'Signed prescription paper. Pharmacists redeem at the mixing station.',
client = { image = 'medicalprescription.png' },
},
['medicalrecord'] = {
label = 'Medical record',
weight = 50,
stack = false,
close = true,
description = 'Printed pharmacy medical record. Use to view dispense details.',
client = { image = 'medicalrecord.png' },
},Repeat this shape for every item in [INSTALL]/items/qb-core_items.txt, which already has them all in this format.
['prescriptionpad'] = { name = 'prescriptionpad', label = 'Prescription pad', weight = 100, type = 'item', image = 'prescriptionpad.png', unique = true, useable = true, shouldClose = true, description = 'Doctor prescription pad. Use to write a new prescription.' },Kora keeps items in its shared registry, seeded from kora_core/shared/items.lua. Add these records to the KoraCoreSeed.items table in that file, then copy the PNGs into kora_inventory/images/. Skip any item name that is already in it.
{ name = 'medicalrecord', label = 'Medical record', weight = 50, type = 'item', image = 'medicalrecord.png', unique = true, useable = true, shouldClose = true, description = 'Printed pharmacy medical record. Use to view dispense details.' },
{ name = 'medicalprescription', label = 'Medical prescription', weight = 50, type = 'item', image = 'medicalprescription.png', unique = true, useable = true, shouldClose = true, description = 'Signed prescription paper. Pharmacists redeem at the mixing station.' },
{ name = 'prescriptionpad', label = 'Prescription pad', weight = 100, type = 'item', image = 'prescriptionpad.png', unique = true, useable = true, shouldClose = true, description = 'Doctor prescription pad. Use to write a new prescription.' },This tab shows the core three. The full list is [INSTALL]/items/kora_items.txt.
Adding your own medication
- Create the item in your inventory with an image named
<item>.png - Add a bottle with the same name on the The meds page, or call
RegisterPrescriptionfrom another resource - Restart the inventory and this resource
Full walkthrough with effects: Medications and effects.
