Hello,
My problem isn't getting a weapon or magazine into the cargo space of a vehicle, it's getting an array of the weapons and ammo in the cargo space of a vehicle out for use in a script.
In OFP:R you can use the action menu to place some of your weapons or ammo into the cargo space of most vehicles, but there doesn't seem to be a way to get a list of that stuff. Using the "weapons" and "magazines" commands didn't work for me because both commands returned a list of the weapons/ammo that the vehicle itself was armed with, not what it had in the cargo space.
The only way I can figure to get a list is through the WeaponPool, which I have experimented, but had no success with. I am unsure if the game will allow you to use the WeaponPool in "real time" to access the lists of weapons/ammo in vehicle cargo areas during a single mission, or only as advertised to move unit and cargo states across missions.