Nocollide Props

How to make nocollide props on there spawn?
This is my code but it doesn’t work for me…

[LUA]
function PropSpawn(ply, mdl, ent)
ent:SetCollisionGroup(COLLISION_GROUP_WORLD)
end
hook.Add(“PlayerSpawnedProp”, “PropSpawn”, PropSpawn)
[/LUA]