# New Gamemodes

## ◾ Adding A New Gamemode

If you did what was instructed on the [**Gamemode**](/setup/gamemode.md) page and Nyx was unable to detect your gamemode; then you will need to manually tell the script what gamemode you are running.

Open the gamemode loader file located in **`lua\modules\nyx\cfg\sh_1_gamemodes.lua`**

You will see a list of gamemodes, with information for each one. Determine what gamemode best explains what you are running. If it is based on darkrp; then you can add your new gamemode under the darkrp listings:

**Locate**:

```
[ 'darkrp' ] =
{
    name        = 'DarkRP',
    pnl         = 'gm_hud_rp',
    width       = 440,
    height      = 119,
},
```

**Add your gamemode under the above code**:

```
[ 'your_rp' ] =
{
    name        = 'My Custom RP',
    pnl         = 'INSERT_ID_HERE',
    width       = 440,
    height      = 119,
},
```

In the above code; you must replace **INSERT\_ID\_HERE** with one of the following options listed below:

| **ID**          | **Gamemode**                             |
| --------------- | ---------------------------------------- |
| **gm\_hud\_sb** | Default (Sandbox)                        |
| **gm\_hud\_bw** | Basewars                                 |
| **gm\_hud\_rp** | DarkRP, HogwartsRP, StarwarsRP           |
| **gm\_hud\_mu** | Murder                                   |
| **gm\_hud\_ph** | Prophunt, Prophunt Enhanced, Prophunters |

{% hint style="info" %}
Additional gamemodes will be included in future updates.
{% endhint %}

## ◾ Gamemode Name

In the above code, the very first line defines the gamemode name itself:

```
[ 'darkrp' ] =
```

To find out the name for your gamemode; boot your server up and it should print as one of the first lines in the console:

![](/files/-MflujxQs50n9P2jlRJN)

Make sure the gamemode is entered exactly how it shows in console in the parenthesis; **darkrp** (or the name of whatever gamemode you are running).


---

# 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://nyx.rlib.io/configuration/new-gamemodes.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.
