RedM documentation

Murphy's Doctor

Getting Started

Items


murphy_doctor does not create items. It uses the items of your framework's inventory by name. This page lists every item the default configuration uses, what it is for, whether it must be usable, who should get it, and how to rename it.

An item named in the configuration but missing from your inventory is simply never found or given: nothing breaks, the feature that needs it is just unavailable. doc_selftest lists the medications missing from your inventory (see Installation).

Installing the items

Ready-made definitions for the 37 items below are in install/. These files are not loaded by the resource: copy their content into your inventory once, skipping the items you already have.

Framework File Where it goes Images folder
REDEM:RP 2023 install/items_redemrp.lua Config.Items in redemrp_inventory/config.lua redemrp_inventory/html/items/
VORP install/items_vorp.sql Run on your database (INSERT IGNORE INTO items) vorp_inventory/html/img/items/
RSG-Core install/items_rsg.lua rsg-core/shared/items.lua rsg-inventory/html/images/

Labels and descriptions in the seeds are in English: translate them freely, the script never reads them for its own texts (see Localization).

Usable flag

An item the script must react to when a player uses it from the inventory must be usable in your inventory:

Framework Field
REDEM:RP canBeUsed = true
VORP usable = 1
RSG useable = true

The seeds already set the right value. On start the server registers every usable item it handles and prints how many:

text
[Murphy Doctor] Usable items registered ... grimoire: 1, poison: 4, poisonable: N, consumables: N

The items registered are: the grimoire item, the poison vials, the poisonable items and every consumable of Config.Consumables.Items (in that order; a name is registered once). The stretcher registers itself separately. Medications, the bandage and the revive item are taken from the doctor's inventory by the script during care: they do not need a usable handler of their own.

Seed format

One entry per framework, as shipped (the bandage):

lua
-- REDEM:RP: redemrp_inventory/config.lua, inside Config.Items
["bandage"] = { label = "Bandage", description = "Clean cloth bandage.", weight = 0.1, canBeDropped = true, canBeUsed = true, limit = 200, imgsrc = "items/bandage.png", category = "consumables", type = "item_standard" },
sql
-- VORP: items table
INSERT IGNORE INTO `items` (`item`, `label`, `limit`, `can_remove`, `type`, `usable`, `desc`) VALUES
('bandage', 'Bandage', 30, 1, 'item_standard', 1, 'Clean cloth bandage.');
lua
-- RSG: rsg-core/shared/items.lua
bandage = { name = 'bandage', label = 'Bandage', weight = 100, type = 'item', image = 'bandage.png', unique = false, useable = true, shouldClose = true, description = 'Clean cloth bandage.' },

Images

The package does not include inventory icons. Put your own .png in your inventory's images folder (table above), named as in the seed: <item>.png on VORP and RSG, and the imgsrc path on REDEM:RP (the REDEM:RP seed points several medications to shared placeholders such as items/medicine.png; change them to your own files).

The script's interface shows the inventory's own image for each item (treatment form, poison menu), read from the inventory resource. The grimoire uses its own illustrations, shipped in ui/build/assets/images/grimoire/; a medication can point to one with the image field of its Config.Treatment.MedicationItems entry (for example image = "grimoire/morphine").

Medical supplies and tools

Item Seed label Usable Setting Purpose Who should get it
grimoire_medical Medical Grimoire yes Config.Grimoire.Item (shared/config.lua) Opens the medical grimoire when used. Doctors only (a non doctor gets a notification). Not consumed. nil turns the item off; the grimoire also opens with the K key and at the dispensary Doctors
bandage Bandage yes Config.Interactions.Bandage.Item The doctor's "Apply a bandage" on a conscious patient: one item consumed, HealAmount (30) health restored. Does not treat injuries Doctors
concentrestimulant Stimulant Concentrate yes Config.Interactions.Revive.Item Consumed by the doctor (Amount = 1) to revive a patient in a coma. Without it the revive is refused. Item = nil makes revives free Doctors
aiguille Needle no Config.Treatment.MedicationItems Suture needle, prescribed on the treatment form (dose Suture) for cuts, bullet wounds and bleeding. Consumed when the report is signed Doctors
ether Ether no Config.Surgery.Anesthesia.Item (shared/config_surgery.lua) Consumed when the doctor puts the patient to sleep before an operation (steadier hand). nil makes anesthesia free Doctors
sterile_kit Sterile Instruments no Config.Surgery.SterileItem Boiled instruments. Consumed at the start of an operation when the doctor carries one; lowers the infection risk (SterileInfectionFactor, 0.4) Made by doctors at the apothecary bench
surgical_kit Surgical Kit no Config.Craft.Recipes (shared/config_minigames.lua) Instruments to boil at the apothecary bench, which gives a sterile_kit Doctors (shop)
extracted_bullet Extracted Bullet no Config.Surgery.Bullet.RewardItem Given to the doctor after a successful bullet extraction. Evidence for the law, or a keepsake. nil gives nothing Nobody (given by the script)
stretcher Stretcher yes Config.Transport.Stretcher.Item (shared/config_transport.lua) Unfolds a field stretcher in front of the doctor. Not consumed; one stretcher out per doctor. Doctors on duty can also use the /stretcher command without the item Doctors
none - - Config.Surgery.Item Optional item consumed at the start of every operation. nil (no item) by default -

The contagion mask is not an item: the contagion system detects a face mask or bandana worn by the character (clothing categories masks and masks_large, see Infection).

Medications

Medications are the items a doctor prescribes on the treatment form. They are declared in shared/config_treatment.lua:

  • Config.Treatment.MedicationItems: the item and its doses;
  • Config.Treatment.MedicationEfficacy: what it treats, the strength of each dose, the overdose threshold and the danger of a wrong prescription.

The treatment form lists each medication with the quantity the doctor carries. All 17 have consumeOnSign = true: one item is taken from the doctor when the report is signed. Their seed entries are usable, so that the script can also offer them as self-use consumables when you map them (see Consumables).

Item Seed label Doses Main uses
laudanum Laudanum 5ml, 10ml, 25ml, 50ml, 15 gouttes, 20 gouttes, 25 gouttes, 30 gouttes Pain of bullet wounds and fractures, tetanus, many fevers. Also lowers alcohol dependence
morphine Morphine 5ml, 10ml, 25ml, 5mg, 10mg, 15mg Bullet wounds, fractures, burns, sepsis, snakebite
aspirin Aspirin 100mg, 250mg, 300mg, 500mg Bruises, influenza, typhoid, heatstroke
quinine Quinine 100mg, 250mg, 500mg, 600mg Malaria, yellow fever, heatstroke, poisoning
codeine Codeine 5mg, 10mg, 15mg, 25mg Blunt trauma, cuts, tuberculosis. Also lowers opiate dependence
digitaline Digitalin 0.05mg, 0.1mg, 0.2mg Pneumonia. Dangerous when prescribed wrongly
solutioncreosote Creosote Solution 0.1ml, 0.3ml, 0.5ml Tuberculosis
camphreartisanal Camphor Balm Friction locale, Cataplasme thoracique Pneumonia, light burns
charbonvegetal Activated Charcoal 5g, 10g, 15g Alcohol poisoning, poisoning, dysentery
antivenin Antivenom Serum 1 ampoule Poisoning, snakebite
vomitif Emetic 1 dose Dysentery, poisoning
baumeclassique Healing Balm Application locale Sepsis, cuts, burns
baumecamomille Chamomile Balm 10g, 1 dose Burns, syphilis, smallpox
calomel Calomel 1 pilule, 2 pilules Syphilis
vaccinejenner Jenner's Vaccine 1 dose Smallpox; grants a 30 day immunity
vaccincholera Cholera Vaccine 1 dose Cholera; grants a 30 day immunity
aiguille Needle Suture Cuts, bullet wounds, bleeding

The exact efficacy of each dose, the overdose rules and the penalties of a wrong prescription are detailed on Treatment, medications and grimoire and Medical reference.

Other roles of medication items:

Role Setting Items
Given with the syringe minigame on the patient's arm Config.Minigames3D.Injection.Items (shared/config_minigames.lua) morphine, antivenin, vaccinejenner, vaccincholera
Vaccines (immunity) Config.Infection.Vaccines (shared/config_infection.lua) vaccinejenner (smallpox), vaccincholera (cholera)
Addiction treatment treatedBy in Config.Addiction.Substances (shared/config_addiction.lua) laudanum (alcohol), codeine (opiates)
Prepared at the apothecary bench Config.Craft.Recipes camphreartisanal, charbonvegetal, quinine, laudanum, aspirin

Who should get them: doctors, through your server's shops, a pharmacy supplier or the apothecary bench below.

Apothecary bench: remedies and ingredients

Doctors prepare remedies at the apothecary bench of a dispensary through a short minigame (Config.Craft, shared/config_minigames.lua). The ingredients are taken, the remedy is given; a very good result gives one more, a failed one uses the ingredients up (LoseOnFail = true).

Recipe Minigame Ingredients Gives
camphor mortar 2 medicinal_herbs, 1 animal_fat 2 camphreartisanal
charcoal mortar 1 charcoal_lump 3 charbonvegetal
quinine scale 2 cinchona_bark 2 quinine
laudanum still 2 opium_poppy, 1 grain_alcohol 1 laudanum
aspirin pills 2 willow_bark, 1 chalk_powder 4 aspirin
sterile sterile 1 surgical_kit 1 sterile_kit

The ingredient items (all non-usable in the seeds):

Item Seed label
medicinal_herbs Medicinal Herbs
animal_fat Animal Fat
charcoal_lump Charcoal Lump
cinchona_bark Cinchona Bark
opium_poppy Opium Poppy
grain_alcohol Grain Alcohol
willow_bark Willow Bark
chalk_powder Chalk Powder
surgical_kit Surgical Kit

Who should get them: general stores, herbalists, gathering or hunting, as fits your server. Map the recipes to items your server already has if you prefer (for example your own animal fat). Details: Minigames and apothecary bench.

Poisons

Poison vials are usable items. Using one opens a menu listing the poisonable items the player carries; the chosen item is marked as poisoned and one vial is consumed. Whoever uses that item later is poisoned.

Item Seed label Effect (default)
poison_mortel Lethal Poison Severe: progressive health damage, 600 s
poison_hallucinogene Hallucinogenic Poison Hallucinations, 300 s
poison_paralysant Paralyzing Poison Slowed movement and light damage, 180 s
poison_somnifere Sleeping Draught Drowsiness, then coma, 120 s

They are declared in Config.Poison.PoisonItems (shared/config_poison.lua, where the effects and timings are set, see Poison). They are only registered while Config.Poison.Enabled = true.

Poisonable items come from two places:

  • Config.Poison.PoisonableItems, a list of names: coffee, beer, whiskey, wine, water, milk, tea, bread, apple, meat_cooked, stew, soup, candy, chocolate, medicine, health_tonic, stamina_tonic. These are generic examples: replace them with your own item names;
  • every consumable of category food, drink, alcohol or medicine in Config.Consumables.Items, added automatically.

A poisoned item is treated by a doctor with antivenin, charbonvegetal, vomitif or quinine.

Who should get them: players who buy them on your black market, a fence or a criminal job.

Consumables

Food, drinks, alcohol, tobacco, drugs, self-used medicine and accessories (fan, pocket watches) are items a player uses on themselves. They are your items: murphy_doctor only maps them in Config.Consumables.Items (shared/config_consumables.lua), one line per item name, with their effects (hunger, thirst, cores, alcohol, temperature...) and animation.

  • 42 entries are mapped by default (water, coffee, bread, cooked meats, stews, cigars and cigarettes, opium, laudanum, morphine, heroine, a fan, nine watches...). Rename the keys to your item names and delete what you do not use.
  • shared/config_consumables_examples.lua holds about 160 more entries (dishes, drinks, alcohols, medicines). They are loaded only with Config.Consumables.LoadCraftExamples = true, and only work for the names your inventory has.
  • No alcohol item is mapped by default: add your own whiskey, beer or moonshine for the alcohol and addiction systems.
  • Using a medication on oneself as a consumable does not treat injuries or diseases. Only a doctor's prescription does.

The fields, the animation presets and the full lists are on Consumables.

To make an existing item usable through the script:

  1. Make sure it exists in your inventory and is flagged usable.
  2. Add it to Config.Consumables.Items with at least a category and an animation.
  3. Restart murphy_doctor. It registers the item with your framework by itself.

Another resource can trigger a configured consumable on the server: TriggerEvent("murphy_doctor:useConsumable", source, "bread"). The player must own the item. See Events.

To make a food or drink a source of disease (unboiled water, raw meat), map it in Config.Infection.Consumable.Items (shared/config_infection.lua). Nothing is mapped by default.

Renaming an item

To use an item your server already has (for example your own medkit instead of bandage), change the item name in the settings that use it. You do not need to rename anything in your inventory.

Item Settings that name it
grimoire_medical Config.Grimoire.Item
bandage Config.Interactions.Bandage.Item
concentrestimulant Config.Interactions.Revive.Item
ether Config.Surgery.Anesthesia.Item
sterile_kit Config.Surgery.SterileItem and the sterile recipe of Config.Craft.Recipes
surgical_kit The sterile recipe of Config.Craft.Recipes
extracted_bullet Config.Surgery.Bullet.RewardItem
stretcher Config.Transport.Stretcher.Item
A medication The key in Config.Treatment.MedicationItems and in Config.Treatment.MedicationEfficacy; then, where it appears, Config.Minigames3D.Injection.Items, Config.Infection.Vaccines, treatedBy in Config.Addiction.Substances, Config.Craft.Recipes and Config.Consumables.Items
A poison vial The key in Config.Poison.PoisonItems
A bench ingredient Its line in Config.Craft.Recipes
A consumable Its key in Config.Consumables.Items (and in Config.Poison.PoisonableItems or Config.Infection.Consumable.Items if listed there)

For a renamed medication, also move its texts in the language files: the medications.<item> block of shared/locales/<code>.lua holds its label and grimoire description, keyed by the item name. Without it the label of your inventory is shown (see Localization).

Then restart the server and run doc_selftest to confirm the names are found.

Item metadata

  • The only metadata the script writes is the poison mark (Config.Poison.MetadataKey, "poison" by default). A poisoned item becomes a separate stack; when it is used, that exact stack is removed and the poison applied.
  • The script reads the metadata of the used stack from the framework: meta on REDEM:RP, metadata on VORP, info on RSG. Per framework details: Frameworks.
  • Item durability or decay is never read or changed. Items are removed one at a time.

Last updated: November 20, 2026