I have found at present that a working script is missing in the ESX versions to be able to disassemble the weapon and store both it and the ammunition in the inventory.
In fact I have written this simple script for ESX.
Disassemble the weapon and its bullets to individual items
Items can be used to assemble the weapon and his bullets again