I’m am developing a deathrun server for the latest version of GMOD (13) and it seem’s that none of the the previous code for Team No Collide works with the gamemode. Here are some of the code I have tried
function NoCollidePeople( teamID ) for _, ply in pairs( team.GetPlayers( teamID ) ) do ply:SetNoCollideWithTeammates( true ) end end
function GM:ShouldCollide( ent1, ent2 ) if ent1:IsPlayer() and ent2:IsPlayer() then return (ent1:Team() != ent2:Team()) end return true end
Still not resolved, if anyone could please help me with this problem that would be much appreciated!