Item setup

Items for Prescriptions. Paste the ox_inventory file, 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.

Everything ships ready for ox_inventory. Open [INSTALL]/ox_inventory/items.txt, paste the whole thing into ox_inventory/data/items.lua, copy the PNGs, then restart the inventory and this resource.

InventoryImage folder
ox_inventoryox_inventory/web/images/
qb-inventory / ps-inventoryhtml/images/
one_inventoryone_inventory/web/images/

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, altruistcrystalYes for the stock catalogOne item per medication
insurancecardOptionalHanded out when someone buys a plan
blankpaperOptionalUsed at the forgery desk for blank fakes
narkhanOptionalNasal spray that brings someone back from an overdose
shotglass, envious_cough_syrup, coughsyrup_shot, envious_shotOptionalEnvious shots. Also needs the sprunk item
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 on the Item names page of the setup panel, so you can rename them there.

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]/ox_inventory/items.txt, using the same names, labels, and weights.

['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.' },

Adding your own medication

  1. Create the item in your inventory with an image named <item>.png
  2. Add an entry with the same name on 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