FREE Admin Menu

FREE!

Description

FiveM staff can use this free NUI admin menu to find an online player and run a moderation command. Open the menu and the client refreshes the live Players tab. The list shows each player’s live ped headshot texture beside their display name and server ID. Each player has four buttons. Revive, Kill, Kick and Ban each pass that player’s ID to the corresponding server command.

Dependencies

Finding and running an action

Opening the menu

Method Details
Keybind U (default) — Open Admin Menu
Command /admin
Event TriggerEvent("admin:toggleMenu", true) or false to close

The methods for opening the menu also toggle it shut. The NUI close callback closes it too.

User interface

All admin actions are grouped under Commands. Search the labels or filter by category. Choose All, Server, Utility, Vehicle, User or Player. Star any entry to save a favorite. Resource KVP keeps your ordering locally under favorites.

A Button takes one click to run. A Form expands into a panel that validates the fields before running the command. Enabled entries appear green with active: true, as godmode and noclip do. An entry with close: true, such as noclip, dismisses the menu after execution.

The icon sidebar lets staff reload favorites, copy coordinates or use dev mode.

Action Icon Description
Reload commands fa-sync-alt Clears saved favorites (commands-r) after confirmation
Dev mode fa-terminal Toggles dev mode (dev); highlights when active; fires hud:client:toggleDev
Copy coords fa-copy Submenu: copy vector3 or vector4 to clipboard
Logout fa-sign-out-alt QBCore only — runs logout and closes the menu

Movement and built-in utilities

Staff have built-in teleports, godmode and noclip. NoClip uses the embedded freecam at client/freecam/. The ped’s position follows the camera. When the player drives, the vehicle’s position follows it too.

NoClip / Freecam

  • Fly using WASD-style movement. Look around with the mouse. Right-click for mouse look with the menu open.
  • Scroll to set flight speed. Shift moves faster and Alt moves slower.
  • On-screen buttons explain the controls. Freecam accepts keyboard controls and gamepad mappings.

Built-in commands

Command Type Description
Revive Self Button Runs revive (framework/admin resource)
Give Armour Button Sets ped armour to 100
Remove Stress Button QBCore — sets player stress metadata to 0
Relieve Needs Button QBCore — sets hunger and thirst to 100
Set PedModel Form Change ped model (self or target); 800+ models in pedmodels.json
Give Weapon Form Give weapon + ammo to self or target
Give Money Form QBCore — cash or bank to a target
Set Job Form QBCore — target, job, and grade (grades load dynamically)
Set Gang Form QBCore — target, gang, and grade
Give Item Form QBCore — target, item, and amount
Command Type Description
Spawn Vehicle Form Spawn from 3000+ vehicles in vehicles.json; extra buttons Mod and Delete (dv)
Set Engine Audio Form ForceVehicleEngineAudio using another vehicle model; Reset extra button
Repair Vehicle Button Runs fix (external command)
Teleport to Vehicle — tpv — warp into driver seat of current vehicle

The vehicle command Mod (mod) applies tint, custom wheels, turbo, xenon and maximum performance mods using ox_lib vehicle properties.

Command Type Description
GodMode Toggle Player invincibility
NoClip Toggle Freecam flight; closes menu; see NoClip / Freecam
Cloak Toggle Makes ped invisible
Increased Run Speed Toggle 1.49× run and swim multiplier
Unlimited Stamina Toggle Continuous stamina restore
Superjump Toggle Super jump every frame
Night Vision Toggle Night vision overlay
Thermal Vision Toggle Thermal/seethrough overlay
Teleport to Marker Button Runs tpm
Teleport to Coords Form tpc x y z — optional keep vehicle
Teleport to Location Form tpl from 80+ preset locations in teleports.json; optional keep vehicle
Set Timecycle Modifier Form 700+ modifiers in timecycles.json with strength slider; Clear resets to default
Dev Toggle Toggles dev HUD via hud:client:toggleDev
Command Type Description
Kick Player Form Target + reason
Kick All Button Runs kick with no args (server-wide)
Ban Player Form Target, reason, and ban length
Command Description
pedmodel [model] [target?] Change ped model (ACE: group.admin)
giveweapon [weapon] [ammo?] [target?] Give weapon to ped (ACE: group.admin)
Command Description
copycoords vec3 / vec4 Copy position (and heading for vec4) to clipboard
commands-r Reset favorite commands (with ox_lib confirm dialog)
tpc Teleport to raw coordinates
tpl Teleport to named location from JSON
tpv Warp into vehicle driver seat
timecycle Apply or clear timecycle modifier
engineaudio Change or reset vehicle engine sound

Some client-only helpers sit outside the default menu. A resource stop automatically resets timecycle, vision, speed, godmode and visibility.

Player information with QBCore

QBCore integration

With no QBCore, Targets and Players list only name and server ID. When qb-core runs, init.lua detects it. Both lists then carry citizen ID, money, character information, gang and job. Only QBCore lets staff expand a player’s details to see their full name, both job and gang grades alongside the job and gang, and formatted balances for cash and bank.

When qb-core is running, the menu resource adds a Logout quick action and any extra commands missing from commands.json. Jobs draw options from shared/jobs.json, Gangs from gangs.json and Items from items.json. The NUI callbacks JobGrades and GangGrades supply the dynamic grade dropdowns for jobs and gangs respectively.

Configuring commands and shortcuts

Configuration

JSON controls which commands the menu runs through your server’s existing admin command set. Built-in commands come from server registration or client/commands.lua. To appear in the menu they use shared/commands.json. Additional commands run through ExecuteCommand. For example, fix, revive, ban, car and kick must exist on the server to run.

  • For a command entry, command names the command, filter sets its filter and label sets its display text. Choose form or button for type. Optional settings are args, fav, active, close and buttons. Within buttons, you can customize the execute label or use the extra key to add action buttons.
  • For sidebar entries, use shared/quickactions.json. Set icon to a Font Awesome class and command to the shortcut’s command. The type options are button and menu. Hovering over a menu opens its submenu. Optional keys include active, close and submenu items.

Set form argument types in shared/commands.json. Select fields can chain their options. A job selection, for instance, can load grades using setOptions and a NUI callback.

Type Description
input Text field
number Numeric input with min/max/step
select Searchable dropdown (static options, optionsKey, or live getOptions)
multi-select Multiple selection
checkbox Boolean toggle
slider Range slider
autocomplete Typeahead from a fixed list

The resource reads shared/*.json at runtime for autocomplete and select fields in the UI. Edit the JSON data to fit your server without editing React or Lua.

File Contents
vehicles.json Vehicle spawn names (~3000)
weapons.json Weapon hashes
pedmodels.json Ped model names (~800)
teleports.json Named locations with coords and inside / outside type
timecycles.json Timecycle modifier names (~700)
weather.json Weather types (loaded for custom commands; not used by default menu)
items.json Inventory items (~225)
jobs.json Job names
gangs.json Gang names

Startup and staff permissions

Resource Required Purpose
ox_lib Yes Callbacks, notifications, dialogs, vehicle properties, clipboard
oxmysql Yes Server script dependency
qb-core No Unlocks QBCore player data, jobs, gangs, items, and extra commands

Installation

Put ag-menu under resources. Add ensure ag-menu in server.cfg after the startup entries for oxmysql and ox_lib. Grant staff ACE permissions for their intended commands. See staff permissions.

Permissions

Set the server config’s ACE principals to restrict menu access and use to staff. For menu execution, ox_lib:checkPlayerAce checks the command ACE. Each registered command applies a restricted check against command.<commandName>. The server requires group.admin for giveweapon and pedmodel.

Runtime and interface build

Events & exports

Name Side Description
admin:toggleMenu Client (boolean) open/close menu
admin:server:RemoveStress Server QBCore stress reset
admin:server:RelieveNeeds Server QBCore hunger/thirst reset
ag:setPedModel Client Apply ped model from server

The resource’s callbacks include ag:GetPedheadshotTxdString, ag:getTargets and ag:getPlayers.

Tech stack

The client runs Lua 5.4 with ox_lib. Server code uses Lua with oxmysql and optionally QBCore. The UI uses Mantine 7, React 18, Jotai, TypeScript, Font Awesome, Vite and react-hook-form. Its web package is version 2.0.0 according to web/package.json.

Find the pre-built UI in web/build/. After changing the React source, work inside web/. Run npm install first, then rebuild with npm run build.

Reviews (0)

Reviews

There are no reviews yet.