ShouldCollide and GravGunPickupAllowed bug

Using a “ShouldCollide” hook with an entity will not let me interact with it (Using the use key).



hook.Add("ShouldCollide","vm_ShouldCollide",function(ent1,ent2)
	if ent2:IsPlayer() and ent1:GetClass() == "milk_entity" then
		return false
	end
end)

Using “GravGunPickupAllowed” will not allow me to pick up the banana model “models\props\cs_italy\bananna.mdl”.



hook.Add("GravGunPickupAllowed","vm_GravGunPickupAllowed",function(ply,ent)
	if IsValid(ply) and IsValid(ent) and ent:GetClass() == "banana_entity" then
		return true
	end
end)

we don’t know what “milk_entity” or “banana_entity” are. Can you demonstrate this “bug” using just vanilla gmod entities?

Those are entities, that i have created. It’s just the banana model not working with it, all of my other entities are working.