> For the complete documentation index, see [llms.txt](https://nyx.rlib.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nyx.rlib.io/configuration/new-gamemodes.md).

# New Gamemodes

Setting up a new gamemode if yours is undetected.

## ◾ 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:

![](https://3069485359-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MOQAjArbY-MDjNTegGs%2F-Mflu7_tiwEAsFMLteMo%2F-MflujxQs50n9P2jlRJN%2FWTyGdBx.png?alt=media\&token=073511d6-203d-462f-b583-02bfb73dee6c)

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).
