How to Make a FiveM PvP Server: Loadouts, Redzones, Arenas
How to make a FiveM PvP server: pick a base, give loadouts, add redzones and safe zones, run arenas in routing buckets, tune damage and keep client mods out.

- Applies to
- FiveM Legacy with OneSync on and FiveM for GTAV Enhanced; PvP, redzone, FFA, KOTH and combat servers with or without a framework; txAdmin recipe index of October 29, 2026; OneSync, spawnmanager and native docs as read on November 23, 2026; ox_lib zones; vMenu Enhanced v1.0.22
- Last verified
On this page
- Direct Answer
- What a FiveM PvP server is made of
- Step 1: Choose the base
- Step 2: Loadouts: give weapons on spawn
- Step 3: Redzones and safe zones
- Step 4: Arenas and lobbies with routing buckets
- Step 5: Damage and headshots
- Step 6: Kill feed, stats and combat logging
- Step 7: Keep client mods out
- FiveM Legacy and FiveM for GTAV Enhanced
- Troubleshooting
- Next Steps
Direct Answer
To make a FiveM PvP server, start from FiveM Basic Server, which txAdmin’s recipe index describes as “A minimal server, without framework”, or from a framework recipe if weapons must live in an inventory. Then add the PvP layer as resources: loadouts given on spawn with GiveWeaponToPed or vMenu’s weapon list, redzones and safe zones from ox_lib zones and DisablePlayerFiring, and arenas or lobbies in their own routing buckets with SetPlayerRoutingBucket. Tune damage with SetWeaponDamageModifier, take kills from the baseevents resource and disconnects from playerDropped, and set sv_pureLevel so players cannot load modified client files.
What a FiveM PvP server is made of
A PvP server is a normal FiveM server with combat rules on top. Redzone, free-for-all (FFA), king of the hill (KOTH) and team servers differ in their rules, not in the parts below.
| Part | What it does | Built from |
|---|---|---|
| Base | The server and txAdmin | A recipe; the server setup guide |
| Loadouts | Weapons on spawn | spawnmanager, GiveWeaponToPed, vMenu or an inventory |
| Zones | Redzones and safe zones | ox_lib zones, DisablePlayerFiring |
| Arenas and lobbies | Separate matches on one server | Routing buckets |
| Damage | Weapon balance and headshots | SetWeaponDamageModifier, SetPedSuffersCriticalHits, weapon meta patches |
| Kill feed and stats | Who killed whom, with what | baseevents |
| Combat logging | Players who leave mid-fight | The playerDropped event |
| Fair play | No client mods, no client-spawned entities | sv_pureLevel, entity lockdown |
PvP and combat resources, such as arenas, redzones, kill feeds and hit effects, are listed in FiveCrate’s PvP and combat scripts type. This guide covers the server settings and natives those resources use, so you can set them up and find faults.
Step 1: Choose the base
- Pick the recipe. txAdmin’s recipe index tags ESX Legacy and Qbox as roleplay and vMenu as freeroam. FiveM Basic Server, “A minimal server, without framework”, is the plain start for a PvP server. The only combat game mode in the index, WarfareTacticsV, is a “Standalone game mode” tagged rts: it describes itself as a “standalone RTS game mode” with “Platoon-based combat”, CPU AI opponents and matchmaking, not as an open PvP server. Every deployer screen is in the txAdmin recipe guide.
- Decide where weapons live. On a server without an inventory, scripts or vMenu hand out weapons. Weapons kept as ox_inventory items need one of its frameworks: ox_core, ESX, Qbox or ND.
- Keep OneSync on. The routing bucket natives “require OneSync to be ‘on’”, not legacy.
Step 2: Loadouts: give weapons on spawn
FiveM’s default resources include spawnmanager, which is “a base resource that handles the spawning of the player”, and it lets you “control how they respawn”. Its client exports include addSpawnPoint, setAutoSpawn and forceRespawn, and its client event playerSpawned is where a loadout script gives weapons. Spawn points of map resources load into spawnmanager “as long as they are started after spawnmanager”.
- By script.
GiveWeaponToPedtakes the ped, the weapon hash, an ammo count and two switches,isHiddenandbForceInHand.RemoveAllPedWeaponsclears the old set first; for networked entities “aCRemoveAllWeaponsEventwill be created per request”. - With vMenu. On a vMenu server, weapons come from
config/weapons.json, with attachments inconfig/weapon-components.json. Each category inweapons.jsongets its own permission, such asvMenu.Enhanced.Menus.WeaponOptions.Categories.handguns, so you decide who may take which weapons. - With an inventory. On Qbox or ESX with ox_inventory, weapons are inventory items.
Addon weapons, and where each server type registers them, are covered in how to add addon weapons.
Step 3: Redzones and safe zones
A redzone is an area where fighting is the point; a safe zone is one where it is not allowed. Both start as an area:
- The area. ox_lib zones define a sphere, box or polygon. onEnter runs when a player enters a zone and onExit when the player leaves it. Create the zones on the client, because on the server “The onEnter, onExit, and inside handlers are unavailable.”
- No fighting in a safe zone.
DisablePlayerFiringblocks “any method of combat including melee and firearms” but “Only disables the firing for one frame”, so the safe-zone script calls it on every frame while the player is inside. - Rules in a redzone. What a redzone does, such as rewards, a marker on the map or a timer, is up to the script that runs it; enter and exit events are the hook.
Step 4: Arenas and lobbies with routing buckets
A routing bucket is FiveM’s version of what other platforms call a dimension or virtual world. A player or entity in a routing bucket “will only see entities (and players) that belong to the same routing bucket”. The docs name “Multi-mode servers where you want to have different games go on without affecting other games” and “Session/party systems” as uses, which is what an arena, a 1v1 lobby or a private match is. They also say the use cases “do explicitly not include interiors”.
SetPlayerRoutingBucket is a server native; buckets are what other platforms called “dimensions” or “virtual worlds”, “however they are population-aware”. Each bucket can have its own lockdown mode and its own population:
| Lockdown mode | Meaning |
|---|---|
full | “Disables dummy object creation”, “Only usable on FiveM for GTAV Enhanced” |
strict | “No entities can be created by clients at all” |
relaxed | “Only script-owned entities created by clients are blocked” |
inactive | “Clients can create any entity they want” |
This is the docs’ example. It sets bucket 1 to strict lockdown, turns off its population and moves a player into it, from a server script:
SetRoutingBucketEntityLockdownMode(1, "strict") -- Set the lockdown mode to strict
SetRoutingBucketPopulationEnabled(1, false) -- Let's disable population for everything inside this bucket!
SetPlayerRoutingBucket(source, 1) -- Now the given player (source) won't be able to create entities client-side
Move the player’s vehicle too: the docs’ example sets the vehicle “to the same bucket the player is in” with SetEntityRoutingBucket. When the match ends, move players back to the bucket they came from.
The routing bucket natives “require OneSync to be ‘on’”. The November 2020 cookbook article added that they “might still route game events such as explosions and projectiles” and that this would be fixed in a later server version; the current docs do not repeat the warning. Test an arena with explosives before you rely on its separation.
Step 5: Damage and headshots
- Weapon damage.
SetWeaponDamageModifier“Changes the weapon damage output by the given multiplier value” and “Does NOT need to be called every frame”; the docs example setsWEAPON_CARBINERIFLEto 0.8. - Headshots.
SetPedSuffersCriticalHitsset to false means “Headshotting a player no longer one shots them”. Instead the hit counts like a torso shot. - Weapon stats in files. Stat changes to
weapons.metaload withWEAPONINFO_FILE_PATCH, the stat patch type described in the addon weapons guide.
Step 6: Kill feed, stats and combat logging
Kills. The baseevents resource “Adds basic events for developers to use in their scripts”, and its deathevents.lua is a client_script. It sends baseevents:onPlayerKilled with the killer’s ID and a table with killertype, weaponhash and the killer’s vehicle, plus baseevents:onPlayerDied and baseevents:onPlayerWasted, to the server with TriggerServerEvent. The default recipe’s server.cfg starts mapmanager, chat, spawnmanager, basic-gamemode and hardcap, not baseevents, so add ensure baseevents if a kill feed or stats script needs it.
Because these events come from each player’s own client script, a server that hands out rewards for kills trusts what the player’s game reports. Check kill rewards on the server; the anticheat settings guide lists the server-side protections.
Combat logging. playerDropped is “Called when a player drops from the server”, with the reason. This is the docs’ example, a server script that prints each drop:
-- source is global here, don't add to function
AddEventHandler('playerDropped', function (reason, resourceName, clientDropReason)
print('Player ' .. GetPlayerName(source) .. ' dropped (Reason: ' .. reason .. ', Resource: ' .. resourceName .. ', Client Drop Reason: ' .. clientDropReason .. ')')
end)
A combat-log script listens to this event and compares it with its own record of recent fights.
Step 7: Keep client mods out
Cfx.re added pure mode in June 2022 because modified client files gave players “unfair advantages over other players, especially in combat.” sv_pureLevel has two levels. Level 1 still allows audio files and known graphics mods; level 2 blocks every modified client file. On a PvP server the choice is about gun sound packs and graphics packs that players install themselves: level 1 keeps audio mods and known graphics mods, level 2 blocks both. To give everyone the same look and sound instead, stream it from the server, as the server-side graphics guide explains.
Server-wide, sv_entityLockdown sets the same rule for every bucket. What each mode can break is in the anticheat settings guide. Arena and map interiors for combat sit in FiveCrate’s MLO category, and visual packs in graphics.
FiveM Legacy and FiveM for GTAV Enhanced
- Pure mode. On FiveM for GTAV Enhanced pure mode is always on, so players cannot bring their own graphics mods during early access.
- Lockdown. The
fullmode is only usable on Enhanced. - Addon weapons. On Enhanced, addon weapons need Enhanced files in
stream_enhanced; the weapons guide has the details.
Troubleshooting
Players in an arena still see the open world players
Check that both the player and their vehicle were moved: the docs’ example moves the vehicle with SetEntityRoutingBucket. A script that moves only the player leaves the car behind.
Players lose their loadout after dying
Give the loadout from spawnmanager’s playerSpawned client event, so it runs on each spawn, not once when the player joins.
Shooting still works inside a safe zone
DisablePlayerFiring lasts one frame. It has to run on every frame while the player is inside, from a client script.
The kill feed shows nothing
baseevents is not started by the default recipe. Add ensure baseevents above the kill feed resource in server.cfg.
Spawned weapons, vehicles or props vanish in an arena
The bucket’s lockdown mode blocks entities created by clients: strict blocks all of them, relaxed the script-owned ones. Create them from a server script, or use a looser mode for that bucket.
Players get an error about modified files when they join
That is pure mode: a player who changed base game files gets an error message naming the file. They have to restore the original game files.
Next Steps
- Build the base server with the server setup guide.
- Add and register combat weapons with the addon weapons guide.
- Lock the server down with the anticheat settings guide.
- Give every player the same look with the server-side graphics guide.
FiveM scripts from FiveCrate
Listed in the FiveCrate catalogue now.
Official documentation and repository references
- txAdmin-recipes: indexv4.json (Popular Recipes for FiveM Legacy)
- Cfx.re Docs: OneSync (routing buckets and entity lockdown)
- Cfx.re Cookbook: Routing Buckets: Split Game State
- Cfx.re Docs: spawnmanager
- Cfx.re Docs: Server Commands (sv_pureLevel, sv_entityLockdown)
- Cfx.re Docs: playerDropped event
- cfx-server-data: baseevents deathevents.lua
- ox_lib docs: Zones
Related guides
FiveM Anticheat Basics: Server Security Settings Explained
FiveM anticheat basics from the docs: what sv_entityLockdown, sv_filterRequestControl, pure mode and state bag strict mode block, and what each can break.
FiveM Server-Side Graphics: Timecycles, Textures, Pure Mode
FiveM server-side graphics: stream a timecycle mod, set visual settings and replace textures from a resource, and use pure mode so every player sees one look.
How to Add Addon Weapons to FiveM (ox_inventory)
How to add addon weapons to FiveM: stream folder, data_file lines for weapons.meta, ox_inventory weapons.lua, images, attachments, QBCore and ESX steps.
How to Make a FiveM Server in 2026 (txAdmin + Portal)
How to make a FiveM server in 2026: download FXServer, finish txAdmin setup, deploy a recipe, add a Cfx Portal key, set listing details and open port 30120.
txAdmin Recipes Explained: Deploy Qbox, ESX or Default
How a txAdmin recipe builds a FiveM server: the current Popular Recipes list, each deployer step, database options, custom URLs and the QBCore deprecation.


