# Expotrs

## Server Client 👨🏻‍💼

### &#x20;**➤UseAlcomat** 🥃

Triggers the function that starts the breathalyzer for the player.

* **Description:** This export triggers the breathalyzer, functioning the same as the item in the config.

**Usage Example:**

```lua
exports["nrg_alcoeffect"]:UseAlcomat()
```

### &#x20;**➤GetDrunkLevel** 🍻

Returns the player's current alcohol intoxication level in promilles.

* **Description:** Returns the player's alcohol intoxication level in promilles.

**Usage Example:**

```lua
local drunkLevel = exports["nrg_alcoeffect"]:GetDrunkLevel()
```

### &#x20;**➤SetDrunkLevel** 🍺

Sets the player's alcohol intoxication level in promilles.

* **Description:** Sets the player's alcohol intoxication level in promilles. For example, 0.5 promilles, 1.2 promilles, etc.

**Usage Example:**

```lua
exports["nrg_alcoeffect"]:SetDrunkLevel(1.5) -- Sets 1.5 promilles
```

### **➤ClearAllAlcoEffect** 🚫

Removes all alcohol effects and causes the player to sober up.

* **Description:** Removes all alcohol-related effects from the player, causing them to sober up.

**Usage Example:**

```lua
exports["nrg_alcoeffect"]:ClearAllAlcoEffect()
```

### **➤ClearClientStomachById** 🧑‍⚕️

Triggers a stomach lavage function by a person (e.g., paramedic) on the player with the given ID.

* **Description:** This function triggers a stomach lavage process performed by a person (e.g., a paramedic) on the player with the specified ID.

**Usage Example:**

```lua
exports["nrg_alcoeffect"]:ClearClientStomachById(5) -- Stomach lavage for player with ID 5
```

### **➤RefreshAlcoEffect** 🔄

**Refreshes the alcohol effects on the player.**

* **Description:** Refreshes the player's alcohol effects, which is useful in cases where other scripts (e.g., car crash effects) might remove the alcohol effect. This export should be used in such cases.

**Usage Example:**

```lua
exports["nrg_alcoeffect"]:RefreshAlcoEffect()
```
