NRG Scripts
  • NRGScripts Documentation
  • About FiveM Escrow
  • NRG RESOURCES
    • NRG SimCard
      • Installation
      • Exports
      • Config
  • NRG AlcoEffect
    • Installation
    • Database
    • Expotrs
  • NRG Hud
    • Installation
    • Expotrs
Powered by GitBook
On this page
  • ⚠️ Important
  • 🌟 Main Functions of the Script:
  • 🧠 Stages of Intoxication
  • βš™οΈ Customization Options

NRG AlcoEffect

A script that makes drinking alcohol on your server very realistic.

PreviousConfigNextInstallation

Last updated 1 month ago

⚠️ Important

In case of problems with removing the effect caused by other scripts use:

Description of the "AlcoEffect" Script Functionality

The AlcoEffect script introduces an alcohol drinking simulation system into the game, where the effects depend on the player's blood alcohol content (BAC), measured in promille. The script offers various mechanics related to alcohol that increase realism and interactions within the game. Below is a detailed description of the script's available functions.

🌟 Main Functions of the Script:

1. 🍺 Alcohol Consumption

Players can drink various alcoholic beverages that affect their blood alcohol content (BAC). Each drink has different effects, such as:

  • Alcohol level – Drinks vary in their impact on the body (e.g., beer has a lesser effect than vodka).

  • Notification – The player receives a message about the drink consumed (e.g., "You drank a beer").

  • Item – The alcoholic beverage is represented by an item (prop) that appears in the player's hands while drinking.

2. πŸš— Difficulty Driving Vehicles

If the player consumes too much alcohol, driving vehicles becomes more challenging. The script introduces the following effects:

  • Difficulty controlling the vehicle.

  • Reaction delay while driving.

  • Increased randomness in vehicle movements, making maneuvering harder. This forces players to be cautious when their BAC is high.

3. 🀒 Ragdoll Effect at High BAC

At higher BAC levels, random falls, known as the ragdoll effect, may occur. This effect may cause the player's character to fall uncontrollably, adding realism and a humorous element to the game.

4. ⚠️ Loss of Control over Character

In the case of excessive alcohol consumption, the player may lose control over their character. This effect can result in random movements of the character, making it impossible to control precisely.

5. πŸ§ͺ Alcohol Level Measurement (Breathalyzer)

Players can use an item called a breathalyzer to measure their BAC. The breathalyzer is available through the targeting system, meaning only selected groups (e.g., paramedics) can use it to perform tests.

6. πŸ’‰ Artificial Body Cleansing (Stomach Lavage)

The script allows for a procedure to cleanse the body of alcohol (stomach pumping). This procedure is available to specific groups (e.g., paramedics) and enables the quick removal of alcohol from the player's body.

🧠 Stages of Intoxication

The script distinguishes four stages of intoxication:

  • 🟒 Tipsy – Light effects

  • 🟑 Drunk – Noticeable difficulties

  • πŸ”΄ Very Drunk – Severe impairments

  • ⚫ Extremely Drunk (Wasted) – The character is practically unusable

Each level introduces different effects: staggering, difficulty driving, falls, etc.

βš™οΈ Customization Options

The script allows for extensive customization of many functions, so server administrators can tailor the script to their needs:

  • Ability to adjust alcohol levels for different drinks.

  • Flexibility in setting thresholds for effects like difficulty driving, ragdoll, or loss of control.

  • Configuration of the breathalyzer and body cleansing procedure, including deciding which groups can perform these actions.

The AlcoEffect script introduces realistic alcohol-related effects into the game, which can significantly impact gameplay, including new interactions between players related to alcohol consumption.

RefreshAlcoEffect