FiveM server hardening: 9 settings to check
FXServer can refuse a lot of abuse by itself. These nine settings go in your server.cfg, cost nothing and close whole classes of cheats. Each one lists what it blocks and what it can break, so you know what to retest.
Updated 17 November 2026
The lines to copy
Put these in your server.cfg and restart the server. Read the notes below first, because some of them change how scripts behave.
set onesync on
set sv_filterRequestControl 2
set sv_entityLockdown relaxed
set sv_enableNetworkedSounds false
set sv_enableNetworkedPhoneExplosions false
set sv_enableNetworkedScriptEntityStates false
setr game_sanitizePlayerAttachment 2
setr sv_protectServerEntities true
set sv_pureLevel 1OneSync
onesync on makes the server keep track of every entity. Server side checks need it, and recent FXServer versions always run with it. If your config still turns it off, remove that line.
Control requests
sv_filterRequestControl 2 blocks players from taking over vehicles that someone else is driving. Cheats use that to steal or fling occupied cars. Skip it only if one of your scripts takes control of occupied vehicles on purpose.
Entity lockdown
sv_entityLockdown relaxed refuses props and vehicles that a client creates by itself. This stops most spawn abuse at the door. It also stops scripts that spawn on the client, such as some emote menus with props. Test your emotes and garages after turning it on.
Networked sounds
sv_enableNetworkedSounds false stops players from playing sounds for everyone, a classic way to spam a whole server. Scripts that rely on networked sounds go quiet, so check sirens and alarm scripts.
Phone explosions
sv_enableNetworkedPhoneExplosions false blocks an old trick that blows up other players through a phone event. This is already the default. Keep it that way.
Script entity states
sv_enableNetworkedScriptEntityStates false blocks trolls who lock other players out of their vehicles. Retest your vehicle lock scripts afterwards.
Attachments
game_sanitizePlayerAttachment 2 refuses props that get glued onto other players. Cuff and carry scripts attach things as well, so test those.
Server entities
sv_protectServerEntities true keeps players from deleting what the server spawned. Scripts that delete server spawns from the client have to do it through the server from then on.
Pure level
sv_pureLevel 1 blocks modified game files. Players restart the game once when they join. Skip it if your server asks players to install custom game files.
After the settings
These settings stop what the engine can see. They do not judge gameplay: a player who flies, heals without limit or fires your events by hand passes all nine. That part is the job of an anticheat.
Arbiter Anticheat reads these settings from your server during setup, shows which ones differ and gives you the lines to copy. Then it adds the checks the engine does not have. See how to stop mod menus for the full order of work.