# Configuration

This superpower system is designed to manage and enhance player abilities through configurable powers, stamina costs, temporary boosts, and progressive power.

***

### Overview

Core Framework

* **Config.core**: Determines the core framework used by your server.
  * Options: `'qb-core'`, `'ESX'`

Example:

```lua
Config.core = 'qb-core'  -- Choose 'qb-core' or 'ESX'
```

***

### Inventory System

* **Config.inventory**: Specifies which inventory system to use.
  * Options:
    * `'qb'`: qb-inventory (for QBCore)
    * `'ox'`: ox-inventory (for QBCore and ESX)
    * `'origen'`: origen\_inventory (for QBCore)
    * `'ps'`: ps-inventory (for QBCore)
    * `'qs'`: qs-inventory (for QBCore)

Example:

```lua
Config.inventory = "qb"  -- Choose your inventory system
```

***

### Language Settings

* **Config.language**: Defines the language for menus and notifications.
  * Available languages: `'English'`, `'Arabic'`, `'Chinese'`, `'Spanish'`, `'French'`, `'German'`
  * Custom languages can be added in the `/locales` folder.

Example:

```lua
Config.language = "English"  -- Set language for menus and notifications
```

***

### Super Mode & Power Menu Commands

* **Config.SupMode\_Command**: Command to activate **Super Mode**.
* **Config.PowerMenu\_Command**: Command to open the **Power Menu**.

Example:

```lua
Config.SupMode_Command = "super"   -- Command for Super Mode
Config.PowerMenu_Command = "powers" -- Command for Power Menu
```

***

### Key Bindings for Superpowers

The following keys are configurable for different superpowers:

* **Super Mode**: Toggle Super Mode (`F2`)
* **Power Menu**: Open Power Menu (`F11`)
* **Telekinesis Pull**: Pull objects (`Q`)
* **Telekinesis Push**: Push objects (`E`)
* **Fly Up**: Fly upwards (`Q`)
* **Fly Down**: Fly downwards (`W`)
* **Strength Lift**: Lift objects (`E`)

Example:

```lua
Config.Keys = {
    Super_Mode = 289,    -- F2: Toggle Super Mode
    Power_Menu = 344,    -- F11: Open Power Menu
    Telekinesis_Pull = 44,  -- Q: Pull with Telekinesis
    Telekinesis_Push = 38,  -- E: Push with Telekinesis
    Fly_Up = 44,            -- Q: Fly upwards
    Fly_Down = 20,          -- W: Fly downwards
    Strength_Lift = 38      -- E: Lift objects
}
```

***

### Superpower Abilities & Stamina Costs

Each power has its own stamina cost and required items for activation:

#### Flight

* **Stamina Cost**: 1
* **Required Item**: `pill_fly`

#### Laser Eyes

* **Stamina Cost**: 20
* **Required Item**: `pill_lasereyes`

#### Super Strength

* **Stamina Cost**: 2
* **Required Item**: `pill_superstrength`

#### Super Speed

* **Stamina Cost**: 0.5
* **Required Item**: `pill_superspeed`

#### Invisibility

* **Stamina Cost**: 3
* **Required Item**: `pill_invisibility`

#### Super Heal

* **Stamina Cost**: 0.5
* **Required Item**: `pill_superheal`

#### Teleportation

* **Stamina Cost**: 1.0 per meter
* **Required Item**: `pill_teleport`

#### Super Durability

* **Stamina Cost**: 5.0
* **Required Item**: `pill_superdurability`

#### Invincibility

* **Stamina Cost**: 5.0
* **Required Item**: `pill_invincibility`

#### Other Powers

* **Energy**: Electrify punches (`pill_energy`)
* **Fire**: Fire resistance (`pill_fire`)
* **Flame**: Generate and project flames (`pill_flame`)
* **Shockwave**: Create shockwaves (`pill_shockwave`)
* **Self Explode**: Create EMP effect (`pill_selfexplode`)
* **Telekinesis**: Manipulate objects (`pill_telekinesis`)
* **Shapeshifting**: Shift to NPCs, players, or animals (`pill_shapeshift`)

Example for one power:

```lua
Config.power.fly = {
    staminaCost = 1,
    itemName = "pill_fly"
}
```

***

### Power-Related Items

* **staminaPower**: Item for permanently improving stamina (`pill_stamina`).
* **boostPower**: Temporarily boosts powers (`pill_temppower`).
* **resetPowers**: Removes all powers (`pill_cure`).

***

### Multipliers & Timers

#### Power Boosts

* **boostPower**: 2x multiplier for boosted powers.
* **staminaPower**: Permanent stamina improvement multiplier (50).
* **xpOnItem**: 5 XP per use of a power item.

#### Timers

* **boostPower**: Duration for boosted powers (10 seconds).
* **selfReviveTimer**: Time until self-revive (100 seconds).

Example:

```lua
Config.Multipliers = {
    boostPower = 2,
    staminaPower = 50,
    xpOnItem = 5
}
```

***

### Extra Server Settings

* **headShots**: Enable headshot critical hits.
* **staminaRecharge**: Recharge rate for stamina when not in super mode (1%).

***

### Debug Mode

* **debug**: Set to true to enable debug logging.

Example:

```lua
Config.debug = false  -- Set to true for debug logs
```

&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://enyo-scripts.gitbook.io/documentations/fivem-scripts/superpowers/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
