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.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:
add_ace group.admin twilight.elevators.admin allowOpening the Menu
- Run
/elevatoradmin, or the command set inConfig.Admin.Command - Or target any elevator panel and choose Manage Elevator, shown to admins only
Creating an Elevator
Click New elevator, then give it a label and a unique key. Add a linked group if it shares a shaft with another elevator.
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.
Toggle jobs on a floor to restrict it. Floors with no jobs selected are public.
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.
Press Save. The elevator works for every player immediately. Use Test ride to try it without walking to a panel.
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.Elevatorsblock 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.