RedM documentation
Murphy's Doctor
Configuration
Alcohol
This page covers shared/config_alcohol.lua: the long-term consequences of drinking. Acute alcohol intoxication (one drink too many) and cirrhosis (a liver worn out by years of drinking) are both diseases of the medical encyclopedia, diagnosed and treated by doctors.
The short-term drunk effects (blurred screen, staggering, falls, vomiting) are configured in Config.Consumables.Drunk, see Consumables.
How it works
Liver wear and cirrhosis
- Every drink (an item with
alcoholin Consumables) adds wear to the player's liver:alcohol units x Wear.GainPerAlcoholUnit. The wear is a value from 0 toWear.Max, saved in the database. - Once the last drink is older than
Wear.SoberGraceMinutes, the wear goes down byWear.DecayPerMinuteevery minute the player is online. - While the wear is at or above
Cirrhosis.Threshold, the server rollsCirrhosis.RollChanceeveryCirrhosis.RollIntervalSeconds. On a hit, the player catches thecirrhosisdisease. - Cirrhosis is incurable: no medication treats it. It never kills and does not touch health or stamina; hunger and thirst drain faster (
Cirrhosis.HungerThirstMultiplier) and the patient coughs from time to time. Stopping drinking only stops the wear from rising.
Example at the defaults: a whisky with alcohol = 20 adds 1.6 wear. Reaching 80 wear takes about 50 such drinks, and the liver recovers 3 wear per sober online hour.
Acute intoxication
- When a player drinks an item that has an
intoxRiskwhile their drunk level is already at or aboveIntox.MinAlcoholLevel,intoxRiskis rolled. On a hit the player catches theintox_alcooldisease (strong drunk screen and a very drunk stagger). - Items with
alwaysIntox = trueare rolled even when the player is sober. - The intoxication clears on its own after
Intox.RecoverSeconds. A doctor can clear it sooner, for example with activated charcoal (charbonvegetal, see Treatment). - An immune player or a player already intoxicated is not infected again.
Cirrhosis and intoxication are given through the infection system: they only apply while
Config.Infection.Enabled = true(see Infection).
Settings
| Key | Default | Description |
|---|---|---|
Config.Alcohol.Enabled |
true |
Master switch of liver wear, cirrhosis and acute intoxication. The drunk effects of Config.Consumables.Drunk are not affected. |
Config.Alcohol.Debug |
false |
Prints the wear, rolls and recoveries in the server console. |
Liver wear
| Key | Default | Description |
|---|---|---|
Config.Alcohol.Wear.GainPerAlcoholUnit |
0.08 |
Wear added per alcohol unit drunk. |
Config.Alcohol.Wear.DecayPerMinute |
0.05 |
Wear removed per online minute once the player is sober. |
Config.Alcohol.Wear.SoberGraceMinutes |
5 |
Minutes after the last drink before the wear starts to go down. The liver does not recover while the player keeps drinking. |
Config.Alcohol.Wear.Max |
100 |
Highest wear value. |
Config.Alcohol.Wear.PersistIntervalSeconds |
300 |
Seconds between two database writes of the (slow) decay. Wear gained by drinking is saved at once, and the final value is saved on disconnect. |
Cirrhosis
| Key | Default | Description |
|---|---|---|
Config.Alcohol.Cirrhosis.Threshold |
80 |
Wear at or above which cirrhosis is rolled. |
Config.Alcohol.Cirrhosis.RollChance |
0.15 |
Chance (0-1) per roll. |
Config.Alcohol.Cirrhosis.RollIntervalSeconds |
600 |
Seconds between two rolls for the same player. |
Config.Alcohol.Cirrhosis.HungerThirstMultiplier |
1.5 |
Multiplier on hunger and thirst decay while the player has cirrhosis (1.5 = 50% faster). |
Acute intoxication
| Key | Default | Description |
|---|---|---|
Config.Alcohol.Intox.MinAlcoholLevel |
50 |
Drunk level at or above which intoxRisk is rolled. Keep it equal to Config.Consumables.Drunk.Thresholds.drunk. |
Config.Alcohol.Intox.RecoverSeconds |
900 |
Seconds after which the intoxication clears on its own. The player is notified. |
Making a drink dangerous
The risk is set per item in Consumables:
Every item of category alcohol also raises the alcohol dependence (see Addiction).
The GetLiverWear server export returns a player's current wear (see Server exports).
Related: Consumables · Addiction · Metabolism · Infection · Treatment · Medical reference
Last updated: November 20, 2026