keepcalculator

06 Numbers and Powers

How to Enable PvE on a Rust Server

Card No. 06·15316 · Updated · Standard formula, shown below

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

  1. Decide which PvE method you want. Rust has no single “PvE mode� switch. You can either (a) disable player damage completely using the pve convar, 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.
  2. Stop your server. Make changes while the server is offline to avoid conflicts. Use your hosting panel’s “Stop� button or send quit in the console.
  3. 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.
  4. 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.

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

  6. 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.spawn or heli.lifetime_minutes, but the default is fine for most servers.
  7. Start your server. Boot it up from your control panel. Watch the console for errors.
  8. Verify PvE is active. Join the server as admin and press F1 to open the console. Type pve – it should return True. Also, try hitting another player (or have a friend test) – you should deal no damage.
  9. If you want to toggle PvE live (without restarting), you can use the in‑game console (as admin) or RCON to type pve true or pve 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 is pve.
  • Forgetting to disable building damage. Many server owners assume PvE also protects buildings. It doesn’t. You must add pve.allowbuildingdamage false separately.
  • 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.cfg only 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.config for 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.cfg before 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

The whole Numbers and Powers drawer →