how to attach gun to character without arms / mesh?

You should add a scene component called Gun Position Component and attach the gun to this component as a child. Or else you can also try adding a Socket to the player skeleton and attach the mesh to the socket