An in-game admin menu for staff. Noclip, spectate, teleport, player tools, vehicles and the world, all from one menu. The server checks every option before it happens, so a cheat can't use it.
Works on its own, and ties into fivecord, warden and fivepanel when they're running.
Yourself
- Noclip with four speeds (scroll to change, shift for double), invisible while flying
- Godmode and invisibility
- Teleport to your waypoint or to typed coordinates
- Copy your position as a vector3, vector4 or heading
- Names and server ids over players' heads, and map blips for everyone
- Revive and heal yourself
Players
- Everyone online, with distance and ping
- Go to, bring, and send back to where they were
- Spectate (Backspace to stop)
- Revive, heal, freeze, message, warn, kick, ban
- Open their inventory (ox_inventory)
- Their profile: character, playtime, warnings, notes and bans
Vehicles
- Spawn any model, with keys for qbx_vehiclekeys and qb-vehiclekeys
- Fix, clean, flip upright, max upgrades, delete
- Change the plate and colour
- Delete every empty vehicle within a radius
World
- Weather and time of day
- Freeze time
- Clear empty vehicles, peds or props within a radius
- fivecord: staff levels come from Discord roles, the same ones the slash commands use. Warn, kick, ban, revive, heal, freeze and messages go through fivecord, so they're saved to the player's record and logged under your name. Profiles need it.
- warden: before you noclip, spectate, teleport, go invisible, turn on godmode or spawn something, warden is told it's on purpose, so staff never get flagged.
- fivepanel: everything staff do in the menu shows up in the panel's activity feed.
Needs ox_lib.
-
Drop
fiveadmininto your resources and add toserver.cfgafter ox_lib:ensure fiveadmin -
Without fivecord, give staff levels with aces:
add_ace group.admin fiveadmin.admin allow add_ace group.mod fiveadmin.mod allow -
Open the menu with F10 or
/admin. Players can change the key in their FiveM settings. There's also anoclipkey binding with no default key, for staff who want one.
config.lua:
Config.tiers: staff level names, lowest first. Keep them the same as fivecord's.Config.permissions: the lowest level for every option. Defaults:
| Level | Can use |
|---|---|
| support | open, copy coords, names, player list, go to, revive, heal, message, warn, profile |
| mod | noclip, invisible, teleport, blips, revive yourself, bring, send back, spectate, freeze, kick, ban, fix, delete, weather, time, freeze time |
| admin | godmode, inventory, spawn, upgrade, plate and colour, delete nearby, clear area |
Config.noclip.speeds: the four noclip speeds.Config.weatherCommand,timeCommand,freezeTimeCommand: used for the world options when fivecord isn't running.Config.revive,Config.heal: how players are revived without fivecord. Set up for qbx_medical, QBCore and ESX.
lua5.4 test/run.lua
Runs the server side against a fake FiveM server.
Made by IamZach. Questions, bugs or ideas: discord.gg/agn
MIT