FiveM admin command log: every command your staff run, from one console command
By Termi3 min read
FiveM has no single place that hears every command. Admin logs usually cover whatever one menu reports, so a /car from one script or a /setjob from another never shows up. FiveBot's bridge logs every command your staff run, with its arguments, on ESX, QBCore, Qbox, vRP or no framework at all, and shows it per admin in the dashboard.
One console command to set it up
Run this in the server console or the txAdmin Live Console, then restart the server:
fivebot hooks install
It adds one line to the fxmanifest.lua of every resource that registers commands, above its other server scripts:
server_script '@fivebot_bridge/hooks/commands.lua'
Inside that resource, every command reports who ran it and with what before the command itself runs. Nothing else in the resource changes. fivebot hooks shows which resources are logged, which wait for a restart and which still need the line, and fivebot hooks remove takes the line out again.
In a framework core the line does the most work. One line in es_extended, qb-core or qbx_core covers every command other resources add through ESX.RegisterCommand or QBCore.Commands.Add.
What gets logged
| Source | What you see | Setup |
|---|---|---|
| Any resource with the line | Every command staff run, with its arguments | fivebot hooks install |
| txAdmin menu | Spawned, repaired and deleted vehicles, heals, teleports, noclip, godmode, spectating, freezing, trolling | None |
| Qbox admin menu | Money, job and gang changes, revives, kills, freezes, goto and bring | None |
| Any other admin menu | What the menu reports through one export | One line in the menu |
Only staff are logged: txAdmin admins, players with the command permission and players in a framework group above user. Chat commands such as /me, /do and /ooc are skipped, and you can edit that list under Staff team, Ranks and rules.
Where you see it
- Staff team shows who of your staff is on the game server now, a few seconds after they join or leave.
- Each admin's page lists what they ran and when, next to their tickets, bans and marks.
- Staff team, Ranks and rules lists the resources that register commands without the line, so you know what is not logged yet.
- Every admin gets Your shift on the dashboard home: their open tickets, the cases they can decide and the appeals against their bans.
When a command looks wrong
An admin who gives themselves money or items, or hands out more than the limit you set, comes up as a case in Decisions with the log lines attached. You warn them, give a minus or let it go. Minuses add up to a warning and warnings to a demotion, and a rank change moves the Discord roles, the game group and the txAdmin permissions together. Staff ranks and marks.
What it does not cover
- Escrowed resources. The command skips them; add the line by hand if the author allows it.
- Resources whose server scripts are only JavaScript or C#. The line logs Lua commands.
- ox_inventory's
/giveitem, which does not say which admin used it. - Cars spawned from client-side menus such as vMenu. Add
set fivebot_log_vehicle_spawns trueto log them; it is off by default because a garage that spawns cars on the client looks the same.
Compared with txAdmin and log bots
txAdmin logs its own menu, and webhook log bots post whatever each script sends to a channel. Neither sees a command that a script registers without logging it, and neither ties the lines to one admin's record. FiveBot logs at the point where the command is registered, so one hook covers every script that has it.
Questions people ask
Does it log what players type?
No. Only commands from staff are logged, and chat commands are skipped.
Can admins hide from it?
A command from a resource without the line is not logged, and the dashboard lists those resources. Cases about an admin never show to that admin.
Which plan do I need?
The bridge and the command log work on every plan. Prices are on fivebot.ai/pricing.
Is FiveBot affiliated with Cfx.re or txAdmin?
No. FiveBot is not affiliated with Cfx.re, txAdmin, Rockstar Games or Take-Two Interactive.