Garry's Mod Wiki

Player:SetNoCollideWithTeammates

  Player:SetNoCollideWithTeammates( boolean shouldNotCollide )

Description

Sets whenever the player should not collide with their teammates, based on their Player:Team.

This will only work for teams with ID 1 to 4 due to internal Engine limitations.
This causes traces with COLLISION_GROUP_PLAYER to pass through players.

Arguments

1 boolean shouldNotCollide
true to disable, false to enable collision.