Disable PvP

How do I make it so that players cannot hurt each other? I still want players to be able to be hurt by npcs or by other things like trigger_hurt, but I don’t want them to be able to hurt each other.

sbox_plpldamage 1

If that doesn’t work try 0. It’s been a while since I’ve had to use it.

This gamemode isn’t sandbox or derived from sandbox

I believe you could do it with this: **[Gamemode.PlayerShouldTakeDamage


Ah. Thank you very much.