Nyx
Browse AddonsDownload RLIB
  • Introduction
  • Showcase
  • FAQ
    • ◾Addon Won't Show
    • ◾Incompatible Addons
    • ◾Modified Script
    • ◾Refunds
    • ◾Script Errors
    • ◾When Are Updates?
  • ❱ Setup
    • ◾Install
    • ◾Verify
    • ◾Workshop
    • ◾Gamemode
  • ❱ Configuration
    • ◾Env
    • ◾Fonts
    • ◾Languages
    • ◾Settings
    • ◾New Gamemodes
  • ❱ First Use
    • ◾Binds
  • ❱ Developers
Powered by GitBook
On this page
  • ◾ Adding A New Gamemode
  • ◾ Gamemode Name
  1. ❱ Configuration

New Gamemodes

Setting up a new gamemode if yours is undetected.

PreviousSettingsNextBinds

Last updated 3 years ago

◾ Adding A New Gamemode

If you did what was instructed on the 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

Additional gamemodes will be included in future updates.

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

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

◾
Gamemode