RedM documentation
Murphy's Doctor
Configuration
Poison
This page covers shared/config_poison.lua: the poison vials, what each poison does over time (damage, screen look, paralysis, sleep, hallucinations), the items that can be poisoned and how a poison reaches its victim.
How it works
Poisoning a food or drink
- A player uses a poison vial (an item of
Config.Poison.PoisonItems). A menu opens with the poisonable items of their inventory. - They pick an item. The menu closes, the poisoning animation plays, the vial is consumed and the chosen item is replaced by the same item carrying the poison in its metadata (under
MetadataKey), including the vial's onset delay. Nothing shows that the item is poisoned. One vial poisons one item, even if the player clicks again during the animation. - Whoever uses that item later (the poisoner can hand it over, sell it, leave it in a stash) gets the poison instead of the item's normal effects.
This needs an inventory that supports item metadata (REDEM:RP 2023, VORP and RSG-Core inventories do). An item already poisoned cannot be poisoned twice.
Other ways to apply a poison
- A consumable that is a poison by itself. Add
poison = "<vial key>"to a consumable entry: using it always applies that poison. - From another resource. Trigger the client event
murphy_doctor:applyPoisonEffectswith a poison table (see Events).
The course of a poisoning
- "You feel sick" notification.
- After the onset delay, the "poisoned" condition appears on the HUD and in the doctor's examination.
- For
durationseconds the configured effects run: screen look building up overvisuals.rampseconds, damage ticks, movement effects, hallucinations, and random symptoms (vomiting, holding the stomach, coughing, short control inversions, stumbles) for moderate and severe poisons. - When the duration ends, the effects stop and the condition clears.
A new poison replaces the one running. A coma stops the screen effects and visions but keeps the poisoning on the medical chart. A doctor cures it with a medication that treats poisoned (shipped: antivenin, charbonvegetal, vomitif, quinine, see Treatment).
General settings
| Key | Default | Description |
|---|---|---|
Config.Poison.Enabled |
true |
Master switch. When false, vials and poisonable items are not registered as usable by the poison system. |
Config.Poison.MetadataKey |
"poison" |
Metadata key that marks a poisoned item. Change it only if it collides with another resource. |
Config.Poison.EffectDelay |
5 |
Fallback delay, in seconds, before the first effects when a poison has no effectDelay of its own (also used for items poisoned before 1.0.1). |
Config.Poison.InstantEffect |
false |
Not read by the current version. |
Config.Poison.Labels |
{} |
Optional text overrides. Empty = the texts of shared/locales/<lang>.lua (poison.*). Keys: menuTitle, noItems, itemPoisoned, poisonUsed, cancelled, consumed, alreadyPoisoned. |
Poisonable items
Config.Poison.PoisonableItems is the list of item names a vial can be applied to. Shipped list: coffee, beer, whiskey, wine, water, milk, tea, bread, apple, meat_cooked, stew, soup, candy, chocolate, medicine, health_tonic, stamina_tonic.
On top of this list, every consumable of category food, drink, alcohol or medicine in Config.Consumables.Items (including the craft examples when they are loaded) is added automatically. A clean (not poisoned) poisonable item that is also a consumable behaves as a normal consumable.
Poison vials
Config.Poison.PoisonItems is keyed by the vial's item name. Each vial is registered as a usable item.
Vial fields
| Field | Type | Description |
|---|---|---|
label |
string | Display name of the poison. |
description |
string | Short description. |
injuryType |
string | Injury type recorded for the poisoning. The shipped vials use "poisoned". |
severity |
string | "minor", "moderate" or "severe". Moderate and severe poisons cause random symptoms; a severe poison can bring the victim to 0 HP (coma) unless effects.canKill = false. Also sets the default damage when coreDamage / healthDamage are omitted. |
duration |
number | Seconds the effects last. |
effectDelay |
number | Seconds before the effects start. Stored on the item when a food or drink is poisoned with the vial, and also used when the poison is applied directly (consumable poison field, event). Without it, Config.Poison.EffectDelay is used. |
effects |
table | What the poison does, see below. |
animation |
table | { dict, anim, duration } played by the poisoner while poisoning an item. duration in ms. |
Effect fields
All fields are optional.
| Field | Default | Description |
|---|---|---|
damage |
true |
false = no damage at all. |
coreDamage |
severe 5, else 2 | Health core points removed per damage tick. |
healthDamage |
severe 2, else 0 | Health points removed per damage tick. |
damageInterval |
5 |
Seconds between two damage ticks. |
canKill |
true |
For a severe poison: false stops the damage at 1 HP. Other severities always stop at 1 HP. |
slowdown |
false |
Slows the victim down. |
slowdownRate |
0.5 |
Movement speed while slowed (0.0 to 1.0). |
preventSprint |
false |
The victim cannot sprint. |
movementClipset |
- | Walk style during the poisoning (for example "injured_general"). |
forceComa |
false |
Sleep poison: drowsiness, then the victim passes out (black screen, unable to act) until the end of duration, then wakes up. |
comaDelay |
30 |
Seconds of drowsiness before passing out (blinking, slower and slower walk). |
hallucinations |
false |
Enables the visions of hallucinationConfig. Without hallucinationConfig, only a random drunk camera shake is used. |
hallucinationConfig |
- | See Hallucinations. |
visuals |
- | The screen look, see below. |
screenEffects |
true |
Without visuals, random sickness screen effects play now and then. false disables them. |
vomit, holdStomach, cough, invertControls |
true |
Set to false to remove that random symptom (moderate and severe poisons, not sleep poisons). |
Screen look (effects.visuals)
The look builds up from its from to its to strength over ramp seconds, then holds until the poison ends (or seconds).
| Field | Description |
|---|---|
timecycle |
{ name, from, to } timecycle modifier and its strength range (0.0 to 1.0). |
loop |
Name of a screen effect (animpostfx) kept running. |
shake |
{ name, from, to } camera shake and its amplitude range. |
bout |
{ postfx, anim, animMs, every = { min, max } } a recurring fit: a short screen effect and/or an animation (for example "cough") every min to max seconds. |
impact |
{ timecycle, postfx, seconds } a short look played once at the start (the hit of a dart). |
ramp |
Seconds to reach full strength. Default: 40% of the duration. |
seconds |
Seconds the look lasts, when shorter than the poison. |
Shipped vials
| Vial | Severity | Duration | Delay | Effects |
|---|---|---|---|---|
poison_mortel |
severe | 600 s | 15 s | Damage: 8 core and 5 HP every 3 s (can bring the victim to a coma). Grey, washed-out sickness look over 240 s, coughing fits every 25 to 50 s. |
poison_hallucinogene |
moderate | 300 s | 10 s | No damage. Poisoned-well look over 90 s, hallucinations every 15 to 30 s. |
poison_paralysant |
moderate | 180 s | 10 s | Speed 40%, no sprint, injured walk. Damage: 3 core and 2 HP every 5 s. Dart hit, then blurred, bent sight over 120 s and slow blinks. |
poison_somnifere |
severe | 120 s | 5 s | 30 s of drowsiness, then the victim sleeps for the rest of the duration. Drugged-dart look during the drowsiness. |
Hallucinations
Under effects.hallucinationConfig. Only the victim sees the visions; they never touch the world of other players.
| Key | Default | Description |
|---|---|---|
interval |
{ min = 15, max = 30 } |
Seconds between two visions. The first one comes 5 to 10 seconds after the onset. |
types |
{ "phantom", "spirit", "wolves", "snakes" } |
Visions picked at random. "fire" (a vision of your own body burning) is available but not in the default list. |
Per vision type:
| Type | Field | Default | Description |
|---|---|---|---|
phantom |
duration |
12 |
Seconds before the figure fades. |
| - | models |
3 ped models | Ped models of the figure. |
| - | minDistance, maxDistance |
14, 24 |
Metres, behind the victim on one side. |
| - | vanishDistance |
9.0 |
Metres. The figure vanishes if the victim walks closer. |
| - | lookTime |
1200 |
Milliseconds of looking straight at it before it vanishes. |
| - | alpha |
205 |
Opacity (0-255). Optional. |
spirit |
duration |
8 |
Seconds. A spirit animal crosses in front of the victim. |
| - | models |
deer, coyote | Animal models. |
| - | minDistance, maxDistance |
10, 16 |
Metres. |
| - | speed, alpha |
1.3, 190 |
Optional: walking speed and opacity. |
wolves |
duration |
14 |
Seconds. Wolves circle and growl at a distance. |
| - | model |
"A_C_Wolf" |
Animal model. |
| - | count |
{ min = 2, max = 3 } |
Number of wolves. |
| - | distance |
16.0 |
Metres, radius of the circle they keep. |
| - | vanishDistance |
8.0 |
Metres. They vanish if the victim walks at them. |
snakes |
duration |
7 |
Seconds. Snakes crawl around the victim's boots. |
| - | model |
"a_c_snake_01" |
Animal model. |
| - | count |
{ min = 3, max = 5 } |
Number of snakes. |
fire |
duration |
8 |
Seconds. |
| - | scale |
1.0 |
Size of the flames. |
Adding a poison
- Create the vial item in your inventory (for example
poison_snakevenom). - Add an entry:
Last updated: November 20, 2026