NEXO Guard documentation
Everything a server owner needs to install NEXO Guard, connect it to the console and run it day to day.
NEXO Guard has three parts that work together:
- The resource (
nexo-ac) runs on your FiveM server. It does the detecting and enforces bans. - The console (this website) shows detections, players and bans, and lets you change rules live.
- The Discord bot (optional) posts alerts and lets staff act from Discord.
Everything belongs to a team. A team has its own keys, server, bans, logs and members, so several servers or communities can share one console without seeing each other's data.
Quick start
- Buy NEXO Guard. You receive the
nexo-acresource and a panel key. - Copy the
nexo-acfolder into your server'sresourcesfolder. - Add the lines below to
server.cfgand start the server. - Your server console prints a claim code that looks like
SRV-AB12-CD34. - Log in (or register), choose Claim your server, enter the code and name your team. Add a team picture if you like.
- Within a few seconds the top of the console shows Game server online.
set onesync on set nexo_ac_license "PASTE_YOUR_PANEL_KEY" ensure nexo-ac
Account and team
After you log in you land on the team picker. You have two ways in:
- Claim your server. Enter the claim code (
SRV-AB12-CD34) your server printed, then give the team a name and an optional picture. You become the team's owner. A code can only be claimed once. - Join with a team code. Ask a team owner or admin for the code (it looks like
NEXO-AB12-CD34). You join as a viewer and the owner can raise your role.
Lost the claim code? Restart the server and it prints again, as long as the server is still unclaimed.
Team owners and admins can see the team code under Team. Owners can regenerate it at any time, which stops the old code from working.
Install the resource
1. Copy the folder
Put the nexo-ac folder in resources/[nexo]/nexo-ac. The folder must be named exactly nexo-ac.
2. Edit server.cfg
set onesync on set nexo_ac_license "PASTE_YOUR_PANEL_KEY" set nexo_ac_webhook "" # optional Discord webhook for detections ensure nexo-ac # start it before your framework (es_extended, qb-core ...)
The panel address is built in (https://ac.chnexus.net). Your panel key links this server to your purchase and can be used on one server.
3. Claim it
Start the server. The console prints a box with your claim code. Go to /teams, log in and claim the server (see above). Keep the file nexo-ac/data/instance.txt when you move servers: it is what ties the resource to your team.
4. Check it
The console strip at the top should switch to Game server online and your players appear under Players. The server console prints [NEXO Guard] panel link: ... when the link works.
Your game server key and Discord bot key are under Account > Team keys if you ever need them. You do not need the game key in server.cfg unless you want to link manually with set nexo_ac_key.
Permissions
Staff permissions use FiveM's ACE system. Add these to server.cfg for the group your staff are in (the example uses group.admin).
add_ace group.admin nexo_ac.menu allow # open the in-game menu add_ace group.admin nexo_ac.kick allow # warn and kick add_ace group.admin nexo_ac.ban allow # ban and unban add_ace group.admin nexo_ac.teleport allow # go to / bring add_ace group.admin nexo_ac.settings allow # change rules add_ace group.admin nexo_ac.bypass allow # exempt from detections
Give nexo_ac.bypass to staff who use noclip, god mode or teleport tools, otherwise they will be flagged like anyone else.
Discord bot
The bot is optional and runs on any machine with Node 20 or newer. It talks to the console with its own key, so a leaked bot key can't be used as a game server key.
- Go to the Discord Developer Portal, create an application, add a Bot and copy its token.
- Invite it with the scopes
botandapplications.commands. No privileged intents are needed. - In the console, open Account and reveal the Discord bot key.
- In the
botfolder copy.env.exampleto.envand fill it in. - Run
npm install, thennode index.js.
DISCORD_TOKEN=your-bot-token DISCORD_GUILD_ID=your-server-id PANEL_URL=https://ac.chnexus.net NEXO_BOT_KEY=PASTE_YOUR_BOT_KEY ALERT_CHANNEL_ID=channel-for-alerts NEXO_ALERT_MIN=kick NEXO_ROLE_VIEWER=role-id NEXO_ROLE_MOD=role-id NEXO_ROLE_ADMIN=role-id
| Command | Role needed | What it does |
|---|---|---|
/status /players /lookup /detections /bans | viewer | Read-only information, visible only to you |
/kick /warn | mod | Applied on the server within about 5 seconds |
/ban /unban | admin | Asks you to confirm with a button first |
If no role IDs are set, every command is refused. Actions taken from Discord show up in the audit log as discord:username.
Teams and roles
| Role | Can do |
|---|---|
| Viewer | See detections, players, bans and rules |
| Mod | Everything a viewer can, plus warn and kick |
| Admin | Plus ban, unban, change rules and see the team code |
| Owner | Plus manage members, rotate the team code and keys, see the audit log |
You can belong to several teams and switch between them with Switch team in the top right.
Tuning detections
Every detection has an action (log, warn, kick or ban) and a number of strikes before the action applies. Change them in the console under Rules, in the in-game menu, or in config.lua.
Checks that look at behaviour (freecam, aim snap, infinite ammo and similar) start on log. Watch them for a few days, then raise the ones that are clean on your server.
Exports for developers
-- Give a player a short grace period (after a legit teleport, revive, fast travel)
exports['nexo-ac']:BypassPlayer(source, 5)
-- Ban from your own script
exports['nexo-ac']:BanPlayer(source, 'reason', 0) -- 0 = permanent
-- Check a license against the ban list
exports['nexo-ac']:IsBanned('license_hex_without_prefix')
-- Feed your own check into the same pipeline
exports['nexo-ac']:Flag(source, 'godmode', 'extra detail')Detection list
| Area | Checks |
|---|---|
| Integrity | Missing heartbeat, invalid token, event flooding, unknown client resources (injection), anti-cheat stopped, honeypot events |
| Player state | God mode, health and armor above max, invisibility, spectate, super jump, run speed, noclip, freecam, teleport, vehicle speed, vehicle god mode |
| Combat | Blacklisted weapons and projectiles, infinite ammo, aim snap, damage too high, damage from impossible range, headshot ratio, give/remove weapon and clear-tasks on others |
| World | Blocked explosion types, silent or oversized explosions, explosion / particle / fire spam, entity spam, blacklisted vehicle, ped and object models |
| On join | Required identifiers, name filter, ban check by identifier and hardware token |
Troubleshooting
The console says the game server is offline
- Look for red
[NEXO Guard]lines in the server console. The game server must be able to reachhttps://ac.chnexus.net. - "Panel key is missing, invalid or revoked": check
nexo_ac_licensefor typos. "already linked to another server": a key works on one server; contact support to move it. - HTTP 401 on a manual
nexo_ac_keymeans the key was rotated. Copy the new one or remove the line to link by claim code.
I did not see a claim code
- It prints once the resource has registered. Scroll up in the console or restart the resource. If the server is already claimed no code is shown.
Nothing is detected
- Confirm
set onesync onand thatnexo-acstarts before your framework.
A legitimate player was flagged
- Open the detection in the console to see the detail, then lower that rule to log or call
BypassPlayeraround the script that caused it.
The F10 menu does nothing
- Check the player has
nexo_ac.menuand has not rebound the key.
Bot commands say I have no permission
- The role IDs in
.envmust be Discord role IDs (enable developer mode, right click the role, Copy ID).
Security and hosting
- The console is served over HTTPS at
ac.chnexus.net. Your team's data is separate from every other team's. - Every request from the game server and the bot is signed with HMAC-SHA256 and a timestamp, and replays are rejected.
- Keys are shown only to team owners after re-entering their password. Rotate them from the same place if one leaks.
- No anti-cheat is unbeatable. Keep your own scripts server-authoritative (never trust money or item events from the client) and keep OneSync on.