if you have enough money, you look at the weapon and press [E]
oh, im sorry i forgot to edit my comment, i realized that after posting