Do you need license from gun manufacturer in order to put it in your game?

If you are a big company, yes. If you have no money they won’t hunt you for using their gun designs.
Would be a waste of resources to sue an indie without anything in his pockets.