Make player not collide with ragdolls

I searched for a while and couldn’t find this, so, what would you have to do in LUA to make the player walk through ragdolls?

**[Gamemode.ShouldCollide

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.ShouldCollide)**

[lua]
hook.Add(“ShouldCollide”,“2112412049921478”,function(ent1,ent2)
if ent1:GetClass() == “prop_ragdoll” and ent2:IsPlayer() then
return false
end
return true
end
[/lua]

Thanks for the help guys.

Remove the return true or else it will screw up all other shouldcollide hooks if I’m not mistaken.

ent1 could be the player and ent2 could be the ragdoll as well.