Item setup

Items for Prescriptions. Paste the file for your inventory, copy the PNGs, and restart.

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

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.

InventoryFile in [INSTALL]/items/Paste into
ox_inventoryox_inventory_items.txtox_inventory/data/items.lua
qb-inventory / ps-inventoryqb-core_items.txtqb-core/shared/items.lua, inside the shared items table
one_inventoryone_inventory_items.txtA server script that starts after one_inventory. The file's header says how
Kora (kora_inventory)kora_items.txtThe KoraCoreSeed.items table in kora_core/shared/items.lua
InventoryImage folder
ox_inventoryox_inventory/web/images/
qb-inventory / ps-inventoryhtml/images/
one_inventoryone_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

ItemNeeded?What it is
prescriptionpadYesDoctors write scripts with it
medicalprescriptionYesThe signed paper patients carry to the pharmacy
medicalrecordYesA printed dispense record
emptybottle, pillbinder, humaneextract, redwoodleaf, gingeroot, chiliadchili, sprunksyrup, meteoritepowderYes for the stock catalogRecipe 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, weazelwakeYes for the stock catalogOne item per medication
insurancecardOptionalHanded out when someone buys a plan
blankpaperOptionalUsed at the forgery desk for blank fakes (alongside a prescription pad)
boxofaspirin, boxofpseudoephedrine, bandageOptionalShoplifting 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

  1. Create the item in your inventory with an image named <item>.png
  2. Add a bottle with the same name on the The meds page, or call RegisterPrescription from another resource
  3. Restart the inventory and this resource

Full walkthrough with effects: Medications and effects.

On this page