Simply get the weapon your want to have unlimited, select it, and type AMMO while on foot to give it ulimited ammo