NEXOGuard

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

  1. Buy NEXO Guard. You receive the nexo-ac resource and a panel key.
  2. Copy the nexo-ac folder into your server's resources folder.
  3. Add the lines below to server.cfg and start the server.
  4. Your server console prints a claim code that looks like SRV-AB12-CD34.
  5. Log in (or register), choose Claim your server, enter the code and name your team. Add a team picture if you like.
  6. Within a few seconds the top of the console shows Game server online.
server.cfg
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.

TipTurn on two-factor authentication under Account. Every owner and admin should have it.

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

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.

ImportantOneSync must be on. Most server-side checks read player position, health and entities through OneSync and do nothing without it.

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).

server.cfg
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.

  1. Go to the Discord Developer Portal, create an application, add a Bot and copy its token.
  2. Invite it with the scopes bot and applications.commands. No privileged intents are needed.
  3. In the console, open Account and reveal the Discord bot key.
  4. In the bot folder copy .env.example to .env and fill it in.
  5. Run npm install, then node index.js.
bot/.env
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
CommandRole neededWhat it does
/status /players /lookup /detections /bansviewerRead-only information, visible only to you
/kick /warnmodApplied on the server within about 5 seconds
/ban /unbanadminAsks 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

RoleCan do
ViewerSee detections, players, bans and rules
ModEverything a viewer can, plus warn and kick
AdminPlus ban, unban, change rules and see the team code
OwnerPlus 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.

False positivesScripts that legitimately teleport players, heal above max health or use custom cameras can trigger detections. Call the exports below around them, or lower that rule to log.

Exports for developers

server-side Lua
-- 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

AreaChecks
IntegrityMissing heartbeat, invalid token, event flooding, unknown client resources (injection), anti-cheat stopped, honeypot events
Player stateGod mode, health and armor above max, invisibility, spectate, super jump, run speed, noclip, freecam, teleport, vehicle speed, vehicle god mode
CombatBlacklisted weapons and projectiles, infinite ammo, aim snap, damage too high, damage from impossible range, headshot ratio, give/remove weapon and clear-tasks on others
WorldBlocked explosion types, silent or oversized explosions, explosion / particle / fire spam, entity spam, blacklisted vehicle, ped and object models
On joinRequired 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 reach https://ac.chnexus.net.
  • "Panel key is missing, invalid or revoked": check nexo_ac_license for typos. "already linked to another server": a key works on one server; contact support to move it.
  • HTTP 401 on a manual nexo_ac_key means 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 on and that nexo-ac starts 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 BypassPlayer around the script that caused it.

The F10 menu does nothing

  • Check the player has nexo_ac.menu and has not rebound the key.

Bot commands say I have no permission

  • The role IDs in .env must 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.