Twilight Elevatorspaidv1.1.0Qbox

Admin Menu

Create and edit elevators in game without touching config files or restarting.

Overview

The admin menu lets staff build elevators in game. Changes save to the database and update for every player straight away, with no restart.

Elevators in config.lua keep working exactly as before. They show in the menu as Config and are read-only. Anything made in the menu is Custom.

Access

Anyone with the admin ace or one of the listed Qbox groups can open the menu. Both are set in config.lua.

config.lua
Config.Admin = {
    Command = 'elevatoradmin',
    Ace = 'twilight.elevators.admin',
    Groups = { 'admin', 'god' },
    LogWebhook = '',
}

To give a group access through the ace instead, add this to your server.cfg:

server.cfg
add_ace group.admin twilight.elevators.admin allow

Opening the Menu

  • Run /elevatoradmin, or the command set in Config.Admin.Command
  • Or target any elevator panel and choose Manage Elevator, shown to admins only

Creating an Elevator

Details

Click New elevator, then give it a label and a unique key. Add a linked group if it shares a shaft with another elevator.

Floors

Add a floor for each stop. Press Set to my position, walk to where players should arrive, face the right way and press E. Use the arrows to set the order shown in the floor selector.

Job locks

Toggle jobs on a floor to restrict it. Floors with no jobs selected are public.

Panels

Add a panel, press Place here, face the wall where the button should be and press E. Adjust the width, depth, height and heading sliders while the zone is drawn in the world.

Save

Press Save. The elevator works for every player immediately. Use Test ride to try it without walking to a panel.

Capture controls

While placing a floor or panel the menu hides so you can move. Press E to confirm or Backspace to cancel.

Managing Elevators

  • Copy to custom makes an editable copy of a config elevator
  • Duplicate copies a custom elevator, ideal for a twin lift in the same building
  • Teleport takes you to the elevator's first floor
  • Export copies a ready-to-paste Config.Elevators block to your clipboard
  • Import from config creates custom copies of every config elevator that doesn't have one yet
  • Delete removes a custom elevator for everyone after you type its name to confirm

Change Log

The Change Log tab lists every create, edit and delete since the last restart. Set Config.Admin.LogWebhook to a Discord webhook URL to keep a permanent record.