TLDR: What can modern governments do to force criminal gangs to use melee weapons instead of guns.
So I am writing a novel where the main character is pushed out of society, and is forced to join a criminal gang in order to survive. The story is set on modern day earth and guns are obviously dominant in the battlefield.
The problem is that I need to keep guns out of the hands of gangs because it will be too violent and nearly impossible for the main character to rise in hierarchy without a lot of luck. I want the gangs to fight using melee weapons (baseball bats, knives etc..). I thought about having strict laws for buying firearms; however, that would not stop gangs from making homemade guns.
Edit: I would like to clarify that the purpose of trying to remove gun is to prevent the likelihood of mass murders. While bats and knives may cause injuries; I believe they are less likely to cause deaths. I simply do not want luck to be the only reason why the main character has a successful criminal career. I feel like guns would take the hard work out of success for a criminal.