How to find whether or not a weapon is droppable from Weapon category.

I was wondering how, or if it was even possible to find out whether or not a weapon is droppable from it’s weapon entity.

If more context is needed, whether a weapon can be dropped or not is set through “SWEP.AllowDrop”

[editline]29th October 2015[/editline]

Sorry for posting without doing enough checking first.



if ply:GetActiveWeapon().AllowDrop == true then
print("true")
else
print("false")
end


The above code worked just fine for every situation I checked it in.