Prop Hunt: Hunters/Props picking up props

On my prop hunt server i have made it so the hunters and props team players can pick up props

Which is with this:

function GM:AllowPlayerPickup(player, entity)
return true
end

What I want to do is make it so ONLY hunters can pick up props.
I’ve tried changing this function a little but nothing works.
I’ve searched all over and can’t find any solutions. I’d really appreciate it if someone could help me out.

Just check what team they’re in.

[lua]
if player:Team() != TEAM_HUNTERS then return false end
return true
[/lua]
That might work, can’t remember the team stuff properly though.

Doesn’t allowing people to pickup items break prophunt meta?

Thank you so much! That worked perfect.