Gamemodes

Information related to confirming that Vliss detects your gamemode.

▸Verify Gamemode

After installing Vliss; you need to ensure that Vliss is utilizing the correct gamemode. Vliss is able to recognize numerous gamemodes; however, may not catch every single one.

View your server console output and look for the following:

If console reads Gamemode Detected: Unknown; this means that you are running a gamemode not detected by Vliss.

Go to folder addons\vliss\lua\vliss\sh\gamemodes\

Find the gamemode file similar to your gamemode and open it.

If running Prophunt; open:sh_cfg_gm_prophunt.lua

If running DarkRP; open:sh_cfg_gm_darkrp.lua

After it is open; view the setting at the top which ends in Enable and set it to true. Review the examples below if you need help:

-- OPEN: addons\vliss\lua\vliss\sh\gamemodes\sh_cfg_gm_darkrp.lua

rp.Enabled = true

Once you have set your gamemode's config to true; restart your server and join. You should now be setup to run your proper gamemode.

The latest version of Vliss includes a "smarter" gamemode detection system. This is the same system that will be included in the complete re-write.

▸Adding New Gamemodes

To add support for your gamemode properly; follow the instructions below:

Open the gamemode loader file located inlua\vliss\sh\sh_cfg_gm.lua

Determine what entry best explains your running gamemode. If it is based on darkrp; then you can add your new gamemode under the darkrp listings:

/*
    rp
*/

[ 'darkrp' ]            = { id = 'rp', name = 'DarkRP' },
[ 'dark_rp' ]           = { id = 'rp', name = 'RP Based' },
[ 'starwarsrp' ]        = { id = 'rp', name = 'Starwars RP' },
[ 'hogwartsrp' ]        = { id = 'rp', name = 'Hogwarts RP' },
[ 'hogwarts_rp' ]       = { id = 'rp', name = 'Hogwarts RP' },
[ 'new_gamemode' ]      = { id = 'rp', name = 'Your Gamemode Name' },

Line 10+ is where you will add your new gamemode to the list. Ensure that you enter your gamemode name correctly in the area before the equal sign where 'new_gamemode' is in the example above. It is the name you use in your server's startup parameters when you specify your gamemode name. It is also the name of the gamemode folder on your server.

You may use whatever name you wish for the name value; but you MUST keep the id as 'rp' or it won't know which settings to load (if you're running an RP gamemode).

Other gamemodes such as Prophunt, etc; are the same, but with a different id value.

▸Gamemode ID List

In the above information (Adding a New Gamemode); it requires you to use an id for each new custom gamemode you add. Below, those IDs have been provided:

Last updated