Enabling PvE (Player versus Environment) on your Rust server turns off player‑vs‑player damage, so your community can build, explore, and fight NPCs without fear of being raided or killed by other players. This guide walks you through the exact steps to configure PvE mode using the built‑in server settings, and covers common mistakes and troubleshooting.
What You’ll Need
- Admin access to your Rust server – either through the server console, an RCON tool, or the in‑game admin menu.
- If you rent from a hosting provider, access to its control panel (most panels have a “Command Line� or “Startup� section).
- Basic familiarity with editing server configuration files (if you prefer file‑based setup).
Step-by-Step
- Decide which PvE method you want. Rust has no single “PvE mode� switch. You can either (a) disable player damage completely using the
pveconvar, or (b) use a plugin like TruePvE for more control (e.g., allow PvP in specific zones). This guide focuses on the built‑in method, which is the simplest and requires no plugins. - Stop your server. Make changes while the server is offline to avoid conflicts. Use your hosting panel’s “Stop� button or send
quitin the console. - Locate your server configuration. The main file is
server.cfg(in the root folder of your server installation). If you don’t have one, create it with a text editor. Some hosts also allow you to add startup parameters directly in the control panel. - Add the PvE setting. In
server.cfg, add the following line:pve true
This is the core setting that disables damage between players. Save the file.
- Optional: protect player structures. By default, players can still destroy other players’ buildings with tools or explosives (even with PvE on). To prevent that, add:
pve.allowbuildingdamage false
This makes player‑built structures indestructible by other players. If you want to keep raiding possible but disable player damage, omit this line.
- Optional: adjust NPC behavior. PvE mode still lets NPCs (scientists, animals, and the helicopter) attack players. You can tune their difficulty with commands like
npc.spawnorheli.lifetime_minutes, but the default is fine for most servers. - Start your server. Boot it up from your control panel. Watch the console for errors.
- Verify PvE is active. Join the server as admin and press F1 to open the console. Type
pve– it should returnTrue. Also, try hitting another player (or have a friend test) – you should deal no damage. - If you want to toggle PvE live (without restarting), you can use the in‑game console (as admin) or RCON to type
pve trueorpve false. This takes effect immediately.
Common Mistakes
- Using the wrong command. Some guides suggest
server.pve– that is not a valid command. The correct one ispve. - Forgetting to disable building damage. Many server owners assume PvE also protects buildings. It doesn’t. You must add
pve.allowbuildingdamage falseseparately. - Editing the wrong file. If you have multiple server instances, make sure you’re editing the correct
server.cfg. - Not restarting after editing. Changes to
server.cfgonly take effect after a restart. - Overwriting the file with a default one. Some hosting panels let you “reset� config files – don’t do that unless you back up your changes.
Tips
- Use a plugin like TruePvE if you want more granular control (e.g., allow PvP in certain monuments, disable tool raiding, or add a grace period). It’s free and widely used.
- Add a message to your server description that it’s PvE so players know what to expect.
- Consider setting up a
oxide.configfor plugins if you plan to use them – but the built‑in method works without any plugins. - Test with a friend before opening the server to the public.
- Keep a backup of your
server.cfgbefore making changes.
Troubleshooting
Players can still damage each other. Check that pve true is in your config and that the server restarted. Also, verify in the console with pve. If you’re using a plugin that overrides PvE, disable it.
Buildings can still be destroyed. Add pve.allowbuildingdamage false and restart. Note that this does not protect against fire or decay – you may need to adjust decay settings separately.
Server won’t start after adding the command. Make sure there’s no typo. The line should be exactly pve true (lowercase). If you’re using a hosting panel’s “command line� field, don’t put it there – put it in server.cfg.
PvE works but NPCs are too strong/weak. Adjust NPC spawn rates and health via console commands like npc.spawn or scientist.health. These are not PvE‑specific but affect the experience.
Players can still hurt each other with environmental damage (e.g., falling). PvE only disables direct damage. Falling, drowning, and radiation are still lethal. If you want to prevent those, you’ll need a plugin like NoFallDamage or NoDrown.
Frequently Asked Questions
Q: Do I need to install a plugin to enable PvE?
A: No. The built‑in pve command works out of the box. Plugins are for extra features.
Q: Can I turn PvE on and off without restarting?
A: Yes, as an admin you can type pve true or pve false in the console or via RCON. It takes effect immediately.
Q: Does PvE prevent players from destroying my buildings?
A: No, not by default. You need to add pve.allowbuildingdamage false to protect structures.
Q: Can I still use explosives in PvE?
A: Yes, but they won’t damage players. They will still damage buildings unless you disable building damage.
Q: Will NPCs still attack players in PvE?
A: Yes, NPCs (scientists, animals, helicopter) remain active and hostile. That’s the “environment� part.
Q: Does PvE affect loot or resource spawns?
A: No. PvE only changes damage rules. Loot and resource spawns are unaffected.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Philips DST7060/20 7000 Series Iron: Specs & Fit
- Coal Fueled Jet Aircraft: Could It Work?675 L
- Remote Desktop on Raspberry Pi: How to Enable It
- Word Select Last Line in Paragraph?
- Google Assistant IFTTT Recipes: 7 Useful Automations
- OLED TVs in Dark Rooms: Why They Look Better and When They Don’t