[Release] Webadmin Settings Menu

Webadmin Settings Menu

A flexible settings panel for controlling console variables (convars).

Allows resources to define their own list of entries for the panel!

Features

  • Comes pre-configured with a few built-in convars
  • Support for most (if not all) types of console variables
  • Security in place to prevent unauthorized access
  • Security in place to prevent unauthorized changes
  • Security in place to prevent changes if the user does not have required permission levels
  • Custom entries added by resource file
  • Custom entries added by resource manifest
  • Ability to show entries based on origin resource
  • Ability to show entries based on origin file in resource

And more!

Download

Dependency

Developers Note

How to use this in your own resources, and how to expand on the existing resource.

Entry definitions

Heading / Category

Title[, Subtitle]

Appears as a header / category separator

Boolean

Title, Convar, "CV_BOOL", Default[, Label]

True / False input in the form of a checkbox

Number Input (Manual)

Title, Convar, "CV_INT", Default[, Min, Max]

Manual number input with optional minimum and maximum

Number Input (Slider)

Title, Convar, "CV_SLIDER", Default, Min, Max

Slider number input

Number Input (Slider & Manual)

Title, Convar, "CV_COMBI", Default, Min, Max

Number input with slider and manual input

Text Input

Title, Convar, "CV_STRING", Default

Normal text input

Text Input (Hidden)

Title, Convar, "CV_PASSWORD", Default

Masked text input

Dropdown Selection

Title, Convar, "CV_MULTI", Items[{name, value}]

A drop-down selection menu
The first entry in Items is the default value
Automatically selects the current convar value if it appears in the list

Adding entries

There are two methods to add entries:

Resource File (JSON)

Create a json file in your resource with the following structure:

[
    ["Title", "Subtitle"],
    ["Text", "my_text_entry", "CV_STRING", "Default"],
    ...
]

Now add your file as a convar_json entry. (f.ex: convar_json 'my_convars.json')

Resource Manifest (LUA)

You can also add the entries directly in your manifest file!
The same structure is used, but you can use a Lua table instead:

convar_category 'Title' {
    'Subtitle',
    {
        {"Text", "my_text_entry", "CV_STRING", "Default"},
        ...
    }
}
14 Likes

This is hella sexy. Thank you!

I get an error when ever my server starts.

Is there any fix for it?

Update your server to latest and make sure webadmin is running.

Okay I updated the server and now there are no errors but nothing is showing up on the website.

I have webadmin-lua and wap-settings installed.
EDIT: They are both started as well.

You need to be:

  1. Logged in
  2. On an account with the webadmin permission. (or webadmin.settings, webadmin.settings.view)

Details on ACE permissions can be found here:

Wouldn’t the admins already have that permission? I can see the resource list but nothing else.

Where should I put the files? Like a normal resources and do a start on server.cfg?

1 Like

I woud ask the same…

How do we install this? Can have some help?

For download and installation:

  1. Go to the GitHub link
  2. click Clone or download , then download the .zip file
  3. Unzip the downloaded wap-settings-master.zip file
  4. move the wap-settings folder into your servers resources folder
  5. add ensure wap-settings to your server config

For configuration:

  1. You need the webadmin.settings.view ACE permission to view the settings panel
  2. You need the command.<setting> ACE permission for each setting in the panel.
  3. If you’re a lazy admin, you can just give yourself webadmin.* and command.*

Please read the README on the GitHub repository or in the downloaded .zip file
Remember to also install the plugin factory:

how do i access this and what are the ace perm lines i have to add

Scroll one post up

You need to go to your servers address in your browser, it will automatically open up Webadmin.

it says “cant connect to website”

is this my server address https://myname-numbers.users.cfx.re/ i changed the name and number cause i don’t know if its vulnerable

Yes, and you can also use the IP and port directly if you have those available.

i added this to my server.cfg
add_ace goup.admin webadmin.chatlog.view allow
and
add_ace goup.admin webadmin.view allow and i wont work

group

im stupid

i fixed it still wont let me open up the website