FiveM anticheat guide: how to protect your server, server-side first
A FiveM anticheat is a resource on your server that detects and stops cheating: spawned props and vehicles, explosion spam, abused events, impossible movement and economy exploits. FiveM and txAdmin give you a base layer, not a full anticheat. The strongest setup starts with server-side checks under OneSync, hardened scripts and staff who review evidence.
Who this is for: server owners and developers. It explains each threat at the level you need to make decisions and how to defend against it. It does not explain how cheats are built or how to get around any protection. We build LTX Anticheat (LTX AC), a server-side anti-cheat for FiveM, so we have a point of view; where we describe our own product, we say so and list its limits.
Does FiveM have an anticheat?
Partly. Cfx.re, the team behind FiveM, runs its own protection inside the FiveM client and can ban an account from the whole platform. Players call this a global ban. It is useful, but it is not something you control: you cannot configure it, you cannot see what it detects, and it knows nothing about your server’s rules, scripts or economy.
That last point matters most. Many of the cheats that hurt roleplay servers do not look like cheating to the platform at all. A player who fires a poorly protected server event to pay themselves is using your own script against you. A staff member who spawns cars for friends is using permissions you gave them. Only something that runs on your server and knows your resources can judge those cases.
So the practical answer is this: FiveM gives you a platform-level layer and a set of server settings. Protecting your own server from cheaters is still your job, through your configuration, your scripts and, for most serious servers, a dedicated anticheat.
Is txAdmin an anticheat?
No. txAdmin is the management panel that ships with FXServer. It starts and restarts your server, shows the live console and the player list, keeps a record of staff actions, and lets staff warn, kick, ban and whitelist players. Those are moderation tools: they act after a person has decided that someone is cheating. txAdmin does not watch gameplay for cheats.
That makes txAdmin a partner for an anticheat, not a replacement. Two habits make it much safer. Give every staff member their own txAdmin account with only the permissions they need, and remove access on the day someone leaves the team. A shared master login is one of the easiest ways for a server to lose control of its own bans.
Some anticheats watch staff actions too. LTX Anticheat, for example, checks for unauthorised admin actions, including txAdmin actions taken by staff who are not on your whitelist.
What FiveM already gives you: OneSync and server settings
Before you add anything, use what FXServer already has. These are public Cfx.re settings that go in server.cfg. Defaults can change between server versions, so read the current Cfx.re server commands documentation before you change one, and test every change on a copy of your server first.
| Setting | What it does | Watch out for |
|---|---|---|
set onesync on | Full state awareness: the server knows every networked entity and decides which players receive it. Server scripts also get game events such as entityCreating and explosionEvent, which they can cancel. | Required by most server-side protection, LTX Anticheat included. Very old scripts written for peer-to-peer networking may need updating. |
sv_entityLockdown | Controls whether clients may create networked entities: inactive (the default) allows everything, relaxed blocks entities created by client scripts, strict blocks every client-created entity. | Relaxed and strict both stop resources that spawn vehicles, props or peds from client code. Move that spawning to the server first. Strict needs the most testing. |
sv_filterRequestControl | Limits when a client may take control of an entity another player controls, such as a vehicle someone is driving. Modes run from 0 (off, the default) to 4 (no control requests routed at all). | Higher modes can break scripts that legitimately take over vehicles or props. Raise it one step at a time on a test server. |
sv_stateBagStrictMode | When set to true, only the server can change the state of networked entities and players. A client can no longer write its own state values. | Scripts that set state bags from the client stop working until that logic moves to the server. |
sv_pureLevel | Blocks modified game files on clients. Level 1 still allows audio files and known graphics mods; level 2 blocks all of them. | Level 2 also blocks visual mods some communities allow. Tell players before you change it. |
sv_scriptHookAllowed | Decides whether players running Script Hook V may connect. | Keep it off on a public server. |
sv_enableNetworkedPhoneExplosions | Decides whether clients may route phone explosion requests through the server. | Off by default. Cfx.re itself notes it can be abused, so leave it off. |
None of these settings catches a cheater. They shrink what a cheat can do on your server, which makes everything that comes after, an anticheat included, more precise.
Server-side vs client-side anticheat, in short
Every FiveM anticheat has to decide where its checks run. A client-side anticheat runs on each player’s PC and looks for cheats inside the game: injected menus, modified files, suspicious input. It can see things the server never sees. The cost is that its code ships to every player, including the people who write cheats, so it is in a constant race with them.
A server-side anticheat runs on your FXServer and judges what actually reaches the server: entities as they are created, explosions, damage and its context, movement over time, events and triggers, money and items. Cheaters cannot read or patch those checks, because they never leave your machine. The limit is just as clear: a cheat that only changes what the cheater sees on their own screen never reaches the server.
Most paid products combine both. We cover the trade-offs in detail, with a comparison table, in server-side vs client-side anticheat.
What cheats do FiveM servers face?
You do not need to know how cheats are built to defend against them. You need to know what each kind does to your server and what the server can see of it. The table is the short version; the sections after it explain each row.
| Threat | What players notice | What the server can see | First line of defence |
|---|---|---|---|
| Mod menus and executors | Anything below, often several things at once | Not the menu itself, only what it does | Server-side checks on effects, sv_pureLevel, hardened events |
| Entity and explosion spam | Props or vehicles raining down, players blown up or set on fire | Every networked entity and explosion, under OneSync | OneSync, sv_entityLockdown, checks that cancel at creation |
| Event and trigger abuse | Money, items, jobs or messages from nowhere | Every server event, its sender and its data | Validation in your own scripts, a per-resource event shield |
| Crash and join floods | Everyone drops at once, or the queue fills with strangers | Oversized or flooding events and bursts of connections | Rate limits, a join gate, your host’s network protection |
| Godmode, teleport, noclip, speed | Players who cannot die or who move impossibly | Health, position and speed over time | Movement and damage checks that know the context |
| Aimbot and wallhacks | Impossible accuracy, players found through walls | Damage events only; a wallhack shows nothing | Damage judged by context, staff review with evidence |
| Money and item exploits | Inflation, duplicated items | Money and item changes through your framework | Server-side prices and payouts, framework-level logs |
| Ban evasion | A banned player back on a new account | Identifiers and hardware tokens at connection | Bans on several identifiers plus hardware tokens |
Mod menus and executors
A mod menu or executor is a program that injects itself into the game on the cheater’s PC and runs code there. It is the delivery vehicle for most of the other threats on this list. The server never sees the menu. It sees what the menu does: the entities it spawns, the events it fires, the health it sets, the positions it jumps to.
That is why server-side detection focuses on effects rather than on menus. You defend against menus by making every effect they can produce impossible (platform settings), refused (validated events) or caught (anticheat checks).
Entity and explosion spam
This is the classic attack on a public server: hundreds of props, vehicles or peds dropped on a crowd, or explosions and fires placed on players. Under OneSync the server learns about every networked entity and explosion before other players see it, and a server resource can cancel them in the public entityCreating and explosionEvent events. Combined with sv_entityLockdown, most spawn spam has nowhere to go.
The hard part is precision. Your own scripts spawn entities all the time, so a good check has to know which resources are allowed to create what, and where.
Event and trigger abuse
This is the root cause of most of the damage on roleplay servers. Resources talk to the server through events, and a cheat can fire any event a client is allowed to send, with any data it likes. If a server event pays out money and trusts the amount the client sends, a cheater can pay themselves. Nothing about that looks unusual to the platform, because the server accepted the request.
The fix starts in your scripts (see the checklist below) and continues with rules per resource: which events are expected, from whom, and how often.
Crash and join floods
Some attacks aim to take the whole server down instead of winning inside it: oversized or flooding events, entity floods built to overload everyone’s game, and bursts of connections that fill the queue or rush new accounts in at once. A server-side anticheat can refuse oversized events, stop floods and hold a join gate.
A network DDoS attack is different. It hits before a single packet reaches FXServer, so it is your hosting provider’s job, not your anticheat’s.
Godmode, teleport, noclip and speed
These change the player’s own state: health that never drops, positions that jump across the map, movement through walls or at impossible speed. The server sees health, position and speed over time, so these are detectable.
They are also where most false bans come from, because legitimate scripts do the same things every day. Elevator and housing scripts teleport players, hospital scripts restore health, admin tools use noclip. A check that only counts how far a player moved will ban innocent players. A check that knows where they were, what they were in and which script moved them will not.
Aimbot and wallhacks
Aim assistance and seeing through walls live entirely on the cheater’s PC. A server-side check sees the results of an aimbot, the damage events, and can judge them with context: from where, at whom, with which weapon. A wallhack that only draws on the cheater’s own screen sends the server nothing at all.
This is the clearest honest limit of server-only detection, and the main reason hybrid products ship code to the client.
Money and item exploits
On a roleplay server a broken economy is lasting damage. Once duplicated cash spreads through the player base, a rollback hurts honest players too. Most money and item exploits come from abused events or from bugs in shop, job and inventory scripts.
Defend with prices and payouts calculated on the server, inventory checks before every sale, and a log of every change with the resource that made it. An anticheat that understands your framework can then judge money and item changes against those rules.
Ban evasion
A ban only matters if it sticks. Banned cheaters come back on new accounts and with changed identifiers. Ban on every identifier the player connected with, plus the hardware tokens FiveM provides, rather than on a single licence identifier.
Treat VPN and hosting connections as something to flag for staff, not as proof. Plenty of honest players use one.
How to protect a FiveM server from cheaters: the owner’s checklist
Most of this list costs nothing but time, and every item makes any anticheat you add more precise.
- Turn on OneSync and move entity spawning into server scripts, so you can tighten
sv_entityLockdown. - Review the platform settings above on a staging copy of your server, then apply them to production.
- Treat every server event as untrusted input. Check who sent it, whether they are where the action happens, whether their job or items allow it, and how often they have sent it.
- Calculate amounts on the server. Never accept a price, payout or item count from the client.
- Log money and item changes with the resource that made them, so you can trace an exploit back to its script.
- Keep your resources clean. Remove what you do not use, update what you do, and buy from the original authors. Leaked resources sometimes carry backdoors that no anticheat can fix.
- Separate staff accounts. Give each staff member their own login in txAdmin and in your panels, with only the permissions they need, and remove access when they leave.
- Write down your ban policy: what gets an automatic ban, what goes to staff review, and how a player appeals.
- Prepare before you install an anticheat. List the resources that teleport, heal, spawn vehicles or give money, and configure them as expected behaviour from the first day.
- Tell your players in your rules and privacy notice what your anticheat records and who can see it.
- Look after the machine itself: your host’s DDoS protection, firewall rules, system updates and database credentials. An anticheat cannot protect the server it runs on.
How do you avoid false bans, and what counts as evidence?
A false ban costs more than a missed cheater. The innocent player leaves, tells their friends, and your staff stop trusting the tool. Most false bans come from three places: legitimate scripts that do cheat-like things, network lag that makes movement look impossible, and checks that react to a bare count instead of the situation.
First, separate two kinds of ban. A Cfx.re global ban comes from the platform and covers every server; you cannot lift it, and neither can your anticheat. A server ban comes from your own tools, and getting it right is your responsibility. Players often confuse the two, so say which is which in your appeal process.
To keep server bans precise, ask three questions of every automatic ban:
- Can the server confirm this from its own data?
- Could a legitimate script on this server have caused it?
- If so, has the signal repeated, or has a second, independent check agreed?
If a legitimate script could have caused it and nothing has confirmed it yet, the right action is a record or an alert for staff, not a ban.
Then make sure every ban comes with evidence a person can review: the detection and its context, the player’s recent actions in your logs, and ideally a short clip and a screenshot from the moment of the decision. A screenshot on its own is supporting evidence, not proof. A clip together with the server-side context is far stronger. Every automatic ban should be reversible by staff, and every reversal should be logged.
How to evaluate a FiveM anticheat: a checklist
There is no single right product for every server. Score each candidate on the points below. Our FiveM anticheat comparison puts eight options side by side on most of them, with sources.
- Framework and inventory. Does it name your framework (QBCore, Qbox, ESX, vRP) and your inventory (ox_inventory, qb-inventory)? A claim of “all frameworks” deserves a test.
- OneSync. Does it require OneSync, and which features stop working without it?
- Where detection runs. What runs on players’ PCs, and could a cheat developer download and study it?
- Automatic bans. What has to be true before it bans on its own? Is that rule written down somewhere you can read it?
- Evidence. Screenshots, clips or recordings? Where are they stored, for how long, and who can see them?
- Staff tools. A web panel, an in-game menu, Discord logs and an audit log of what staff did.
- Your own scripts. Can you protect your server events without rewriting them?
- Performance. Measure resmon on your own server, at your own player count, instead of relying on a figure measured somewhere else.
- Licensing and refunds. Is there a trial, a demo or a refund window? Lifetime or subscription, and what happens to updates?
- Support. Who helps you install and tune it, and how quickly do updates arrive when FiveM changes?
If you are weighing one product in particular, our head-to-head pages go deeper. Looking for a FiveGuard alternative, for example? See LTX Anticheat vs FiveGuard.
What does an anticheat not cover?
An anticheat is one layer. These belong to other layers, and no anticheat replaces them:
- DDoS and network attacks. They are stopped at the network, before FXServer sees them. Choose a host with real protection.
- The machine itself. System updates, remote access and a database that is not open to the internet.
- Leaked and backdoored resources. An anticheat runs next to your resources; it cannot make a resource with a hidden backdoor safe. Review new resources before you add them.
- Who you trust. An anticheat can flag unauthorised admin actions, but it cannot decide who deserves admin rights.
- Your server rules. Breaking roleplay rules is a moderation matter, not cheating, and belongs with your staff.
Where LTX Anticheat fits, and its limits
LTX AC is our server-side FiveM anticheat. It runs as a resource, ltx_core, on your own FXServer and requires OneSync. Every detection decision is made on the server. It supports QBCore, Qbox and ESX, with ox_inventory or qb-inventory.
It covers the threat map above with more than 100 configurable protections, each with its own switch and action (ban, kick, warn or shadow) in the web panel. Entities and explosions are checked as they are created and cancelled before other players see them. Damage is judged by where it happened, at whom and with which weapon. There are movement checks, a per-resource event shield, a join gate against connection floods and account rushes, economy checks through your framework, and checks for unauthorised admin actions.
Ban decisions follow the rule in the false-bans section. A detection the server can confirm applies the action you chose for it at once. A signal that a legitimate script could also cause is only recorded until a written proof rule confirms it: the same signal repeating, or a second independent check agreeing. Advisory signals never ban; they go to staff with the evidence attached. Every decision is logged in the panel and can be reversed by staff.
The small client script makes no detection decisions. It keeps a short rolling video buffer of the player’s screen in the player’s memory and uploads the last 15–20 seconds only when the server reaches a decision about that player, together with one screenshot per decision. Staff also get Live View, an in-game staff menu, Discord logs and token-based bans, and VPN and hosting connections are flagged for staff instead of blocked. Because recording and Live View exist, you must tell your players about them in your server rules or privacy notice; our privacy policy explains what is recorded.
Its limits, plainly. It needs OneSync. It does not support vRP. On a standalone server, the economy checks need a supported framework. Because detection is server-side, it cannot see a cheat that only changes the cheater’s own screen. There is no lifetime licence and no public trial. It is in early access, onboarding a limited number of production servers. No resmon figure has been published yet, so measure it on your own server.
Plans are $60 a month, $306 for 6 months or $540 for 12 months, with the full platform on every plan (see LTX AC plans). Install steps and requirements are on the FiveM anticheat for QBCore, Qbox and ESX page.
Questions server owners ask
Can an anticheat stop every cheater?
No, and be wary of any product that says it can. An anticheat raises the cost of cheating and catches what it can see. Combine it with the platform settings, hardened scripts and staff who review evidence, and most cheats stop paying off.
Do I need OneSync for a FiveM anticheat?
For server-side detection, in practice yes. Without OneSync the server does not know about most entities and cannot cancel spawns or explosions before other players see them. LTX Anticheat requires OneSync.
Will an anticheat slow my server down?
Every resource costs something. Measure resmon on your own server, with your own resources and player count, before and after you install. A figure measured on someone else’s server tells you little about yours.
Should I block VPNs on my FiveM server?
Blocking every VPN also blocks honest players. Flagging VPN and hosting connections for staff, and looking closer when other signals agree, keeps those players while still helping you spot ban evasion. That is how LTX Anticheat handles them.
What should I do when a player says they were banned by mistake?
First check whether it is a Cfx.re global ban or a ban from your server; only the second is yours to review. Then look at the evidence and the context behind the decision. If it does not hold up, reverse the ban and fix the configuration that caused it.
Talk to the team
Licensing, onboarding and support for LTX Anticheat run through Discord. Check that your framework and inventory are supported before you buy.