🟥Themes

Managing themes and adjusting settings

▸ Location

You can access the theme files for this addon by going to

lua\modules\hudhive\themes\

▸ Modifying Colors

Colors and various other settings are stored in convars when the player connects to the server.

If you wish to modify a theme and change the colors; you will need to open one of the theme files by going to the location provided above.

Find the name of the setting you wish to modify, an example is provided below:

lua\modules\hudhive\themes\cl_frost.lua
{
    sort            = 450,
    b_visible       = true,
    id              = 'hudhive_rp_clr_utime_val_txt',
    name            = 'Utime label Color',
    desc            = 'Color for utime value text',
    class           = 'hexa',
    values          = { hex = 'FFFFFF', alpha = 255 },
},

The above example is what defines the text color for utime.

You can change the color by modifying the hex value specified as { hex = 'FFFFFF', alpha = 255 }

Once you make your desired change, you will need to connect to your server as a player. The old color should still be cached as a convar and the change will not appear until you open your player console ( by pressing ~ ) and type the command:

hudhive.debug.th.reset

Once entering the above command, all old convars will be overwritten with the values stored in the theme file, and the new change should appear on your hud.

To apply color changes, or edit values for a theme; you MUST enter the command above in your console. Simply changing from one theme to another will not force the new changes to take affect.

▸ Changing Themes

Players are given the ability to change themes on-the-fly. You can do this one of three ways:

  1. Open player chat and type the command !themes

  2. Open the player console and type hud.themes

▸ Default Theme

The Frost theme is the default theme.

You can modify which theme is the default for new players.

Open lua\modules\hudhive\cfg\sh_2_themes.lua and modify the setting:

lua\modules\hudhive\cfg\sh_2_themes.lua
cfg.themes.default          = 'frost'

You must choose a valid theme name to become the default. If you do not put in a valid name, the default theme will not change.

Changing the default theme will only take affect on NEW players who have not yet connected to your server.

All existing players will continue to use the theme they had prior to the change.

▸ Forcing Theme

You can also force which theme is used by all players.

Open lua\modules\hudhive\cfg\sh_2_themes.lua and modify the setting:

lua\modules\hudhive\cfg\sh_2_themes.lua
cfg.themes.force_theme      = true

By setting the value above to true; all players connecting to the server will be forced to use the default theme.

Last updated