First you have to walk to either side of the boat and then press X when the "Save weapons" prompt appears to save the weapon you have equipped at that time.
To pick up the stored weapon, all you have to do is repeat the same process to the letter.
In this way we finalize our Gears 5 guide on storing weapons, we hope it will be very useful for you and take full advantage of it in the game.