> For the complete documentation index, see [llms.txt](https://hane-mod-studio.gitbook.io/hane-mod-studio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hane-mod-studio.gitbook.io/hane-mod-studio/hane-scripts/hane-motel/config-settings.md).

# Config Settings

### General Structure

```lua
Config = {}
```

All settings are defined under the `Config` table. Each section is explained in detail below.

***

### Framework Configuration

```lua
Config.Framework = "qbx"
```

Specifies the main framework used by the server.

Supported frameworks:

* `qbx`
* `qb`
* `esx`
* `ndcore`
* `oxcore`
* `standalone`

Selecting an incorrect framework may prevent player data from loading and cause the script to stop working.

***

### Inventory System

```lua
Config.Inventory = "ox"
```

Defines which inventory system is used.

Supported inventory systems:

* `ox` → ox\_inventory
* `qb` → qb-inventory
* `qs` → qs-inventory

During inventory installation, **only the Lua file matching the selected system should be installed**.

***

### Target System

```lua
Config.Target = "ox"
```

Determines how players interact with interaction points.

Supported target systems:

* `ox` → ox\_target
* `qb` → qb-target
* `qtarget`
* `interact`

If a target system that is not active on the server is selected, interactions will not work.

***

### Appearance (Clothing) System

```lua
Config.Appearance = "illenium"
```

Specifies which system manages player appearance.

Supported appearance systems:

* `fivem` → fivem-appearance
* `illenium` → illenium-appearance
* `rcore` → rcore\_clothing

***

### Language Setting

```lua
Config.Locale = "en"
```

Defines the language used by the script.

* `en` → English
* `tr` → Turkish
* `de` → German

The locale setting affects notifications and UI texts.

***

### Debug Mode

```lua
Config.Debug = false
```

* `true` → Outputs detailed debug information to the console
* `false` → Debug mode is disabled

It is recommended to enable this temporarily during troubleshooting.

***

### Rental System Settings

```lua
Config.RentalSystem = {
    minDays = 1,
    maxDays = 7,
    moneyType = "cash",
}
```

This section controls the room rental system.

* `minDays`\
  Minimum number of days a room can be rented
* `maxDays`\
  Maximum number of days a room can be rented
* `moneyType`\
  Payment type
  * `cash`
  * `bank`

***

### Spare Key System

```lua
Config.SpareKey = {
    enabled = true,
    price = 5000,
    maxKeys = 5,
}
```

Allows players to purchase additional keys for the same room.

* `enabled`\
  Enables or disables the spare key system
* `price`\
  Cost of a single spare key
* `maxKeys`\
  Maximum number of keys that can be issued for a room

***

### Admin Settings

```lua
Config.Admin = {
    enabled = true,
    command = "moteladmin",
    discordIds = {
        "140208250984464384",
    },
}
```

This section defines who can access the admin menu.

#### Details

* `enabled`\
  Enables or disables the admin system
* `command`\
  Command used to open the admin menu\
  Example:

  ```
  /moteladmin
  ```
* `discordIds`\
  Discord IDs of users who are allowed to access the admin menu

Only players with Discord IDs listed here can access the admin menu.\
Steam IDs or license identifiers are **not** used. Authorization is handled **exclusively via Discord ID**.

***

### Interior Theme System

```lua
Config.InteriorThemes = {
    default = "hn_pc_apartment_01_props",
    available = {
        "hn_pc_apartment_01_props",
        "hn_pc_apartment_03_props",
        "hn_pc_apartment_04_props",
        "hn_pc_apartment_02_props",
    }
}
```

Defines the interior prop sets that can be used inside motel rooms.

* `default`\
  The default interior theme
* `available`\
  List of available interior themes

***

### Utility Functions

The utility functions defined at the bottom of the config file are used to calculate pricing and floor-related data.

* `GetFloorData`\
  Returns data for a specific motel and floor
* `GetFloorPrice`\
  Returns the daily price for a specific floor
* `CalculateTotalPrice`\
  Calculates the total rental cost based on the number of days

These functions are used automatically by the script and **should not be modified manually**.
