Getting a weapons holdtype?

Im making a script that turns the weapon into safety mode if you are running (meaning you cant shoot and the holdtype gets set to passive) but there seems to be no way of getting the original holdtype?



hook.Add( "PlayerSwitchWeapon", "yeet", function( ply, oldWeapon, newWeapon )
	orighold = newWeapon:GetHoldType() -- Not working
end)