Configured ammo not being set
I use the customization of the loot and it happens that a case contains only 50 ammunitions 5.56 ...
The file has been checked with the site jsonlint.com and it is valid. Is anyone experiencing this problem?

{
  "HeliInventoryLists": [
    {
      "lootBoxContents": [
		{
          "name": "ammo.rifle",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 128,
          "skinID": 0
        },
        {
          "name": "ammo.rifle.hv",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 128,
          "skinID": 0
        },
        {
          "name": "ammo.rifle.incendiary",
          "amountMin": 0,
          "amountMax": 0,
		  "amount": 128
        },
        {
          "name": "ammo.rifle.explosive",
          "amountMin": 0,
          "amountMax": 0,
		  "amount": 128
        }
      ]
    },
	{
      "lootBoxContents": [
        {
          "name": "explosive.timed",
          "amountMin": 1,
          "amountMax": 3,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.rocket.fire",
          "amountMin": 2,
          "amountMax": 6,
          "amount": 0,
          "skinID": 0
        }
      ]
    },
    {
      "lootBoxContents": [
        {
          "name": "lmg.m249",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "ammo.rifle",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 50,
          "skinID": 0
        },
		{
          "name": "weapon.mod.flashlight",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "weapon.mod.holosight",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "weapon.mod.muzzlebrake",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        }
      ]
    },
	{
      "lootBoxContents": [
	  {
          "name": "rifle.lr300",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "ammo.rifle",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 25,
          "skinID": 0
        }
      ]
    },
    {
      "lootBoxContents": [
        {
          "name": "rifle.m39",
          "amountMin": 0,
          "amountMax": 1,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.rifle",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 25,
          "skinID": 0
        }
      ]
    },
	{
      "lootBoxContents": [
        {
          "name": "ammo.rocket.basic",
          "amountMin": 0,
          "amountMax": 6,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.rocket.fire",
          "amountMin": 0,
          "amountMax": 6,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.rocket.hv",
          "amountMin": 0,
          "amountMax": 6,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.rocket.sam",
          "amountMin": 3,
          "amountMax": 6,
          "amount": 0,
          "skinID": 0
        }		
      ]
    },
    {
      "lootBoxContents": [
        {
          "name": "explosive.timed",
          "amount": 3
        },
        {
          "name": "ammo.rocket.basic",
          "amount": 3
        }
      ]
    },
    {
      "lootBoxContents": [
        {
          "name": "ammo.pistol",
          "amountMin": 128,
          "amountMax": 256,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.pistol.fire",
          "amountMin": 128,
          "amountMax": 256,
          "amount": 0,
          "skinID": 0
        },
		{
          "name": "ammo.pistol.hv",
          "amountMin": 128,
          "amountMax": 256,
          "amount": 0,
          "skinID": 0
        }
      ]
    },
	{
      "lootBoxContents": [
        {
          "name": "ammo.grenadelauncher.buckshot",
          "amountMin": 2,
          "amountMax": 6,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.grenadelauncher.he",
          "amountMin": 3,
          "amountMax": 9,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.grenadelauncher.smoke",
          "amountMin": 3,
          "amountMax": 9,
          "amount": 0,
          "skinID": 0
        },		
        {
          "name": "multiplegrenadelauncher",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        }
	  ]
    },
	{
      "lootBoxContents": [
        {
          "name": "weapon.mod.flashlight",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "weapon.mod.holosight",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "weapon.mod.lasersight",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "weapon.mod.muzzleboost",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "weapon.mod.muzzlebrake",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "weapon.mod.silencer",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        }		
	  ]
    },
	{
      "lootBoxContents": [
        {
          "name": "techparts",
          "amountMin": 1,
          "amountMax": 10,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "cctv.camera",
          "amountMin": 3,
          "amountMax": 6,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "targeting.computer",
          "amountMin": 1,
          "amountMax": 3,
          "amount": 0,
          "skinID": 0
        }		
      ]
    }
  ]
}

config file:

{
  "Cooldowns": {
    "Cooldown.0": 86400.0,
    "Cooldown.1": 86400.0,
    "Cooldown.2": 86400.0,
    "Cooldown.3": 86400.0,
    "Cooldown.4": 86400.0,
    "Cooldown.5": 86400.0,
    "Cooldown.6": 86400.0,
    "Cooldown.7": 86400.0,
    "Cooldown.8": 86400.0,
    "Cooldown.9": 86400.0,
    "cooldown.ch47.0": 86400.0,
    "cooldown.ch47.1": 86400.0,
    "cooldown.ch47.2": 86400.0,
    "cooldown.ch47.3": 86400.0,
    "cooldown.ch47.4": 86400.0,
    "cooldown.ch47.5": 86400.0,
    "cooldown.ch47.6": 86400.0,
    "cooldown.ch47.7": 86400.0,
    "cooldown.ch47.8": 86400.0,
    "cooldown.ch47.9": 86400.0
  },
  "Damage - Global damage multiplier": 1.0,
  "Gibs - Health of gibs": 1000.0,
  "Gibs - Time until gibs can be harvested in seconds": 240.0,
  "Health - Base Helicopter health": 15000.0,
  "Health - Main rotor health": 3500.0,
  "Health - Tail rotor health": 1500.0,
  "Limits": {
    "Limit.0": 5,
    "Limit.1": 5,
    "Limit.2": 5,
    "Limit.3": 5,
    "Limit.4": 5,
    "Limit.5": 5,
    "Limit.6": 5,
    "Limit.7": 5,
    "Limit.8": 5,
    "Limit.9": 5,
    "limit.ch47.0": 5,
    "limit.ch47.1": 5,
    "limit.ch47.2": 5,
    "limit.ch47.3": 5,
    "limit.ch47.4": 5,
    "limit.ch47.5": 5,
    "limit.ch47.6": 5,
    "limit.ch47.7": 5,
    "limit.ch47.8": 5,
    "limit.ch47.9": 5
  },
  "Loot - Max Crates to drop": 4,
  "Loot - Time before unlocking CH47 crates": -1.0,
  "Loot - Time before unlocking crates": -1.0,
  "Loot - Use Custom loot spawns": true,
  "Misc - Helicopter can shoot while dying": true,
  "Misc - Helicopter speed": 25.0,
  "Misc - Helicopter startup length in seconds": 0.0,
  "Misc - Helicopter startup speed": 25.0,
  "Misc - Maximum CH47 life time in minutes": 15,
  "Misc - Maximum helicopter life time in minutes": 15,
  "Misc - Prevent crates from spawning when forcefully killing helicopter": true,
  "Rockets - Blunt damage to deal": 180.0,
  "Rockets - Explosion damage to deal": 125.0,
  "Rockets - Explosion radius": 6.0,
  "Rockets - Max helicopter rockets": 12,
  "Rockets - Time between each rocket in seconds": 0.2,
  "Spawning - Automatically call CH47 between max seconds": 0.0,
  "Spawning - Automatically call CH47 between min seconds": 0.0,
  "Spawning - Automatically call CH47 if one is already flying": false,
  "Spawning - Automatically call helicopter between max seconds": 0.0,
  "Spawning - Automatically call helicopter between min seconds": 0.0,
  "Spawning - Automatically call helicopter if one is already flying": false,
  "Spawning - Chinooks to spawn": 1,
  "Spawning - Disable CH47 default spawns": false,
  "Spawning - Disable Helicopter": false,
  "Spawning - Disable helicopter gibs": false,
  "Spawning - Disable helicopter napalm": false,
  "Spawning - Disable Rust's default spawns": false,
  "Spawning - Helicopters to spawn": 1,
  "Spawning - Max active helicopters": -1,
  "Spawning - Use custom helicopter spawns": false,
  "Spawning - Use static spawning": false,
  "Spawning - Use static spawning for CH47": false,
  "Turrets - Helicopter bullet accuracy": 2.0,
  "Turrets - Helicopter bullet damage": 35.0,
  "Turrets - Helicopter bullet speed": 275,
  "Turrets - Max range": 340.0,
  "Turrets - Time between turret bursts in seconds": 3.0,
  "Turrets - Turret burst length in seconds": 3.0,
  "Turrets - Turret fire rate in seconds": 0.105
}

Thanks

 
In one of your entries, the item amount for the ammo *is* set to 50. Specifically this entry:
      {
          "name": "ammo.rifle",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 50,
          "skinID": 0
        },​
yes but i've set a m249 with mod...

He give only ammo.... no mod, no m249...
Oh, sorry, I misunderstood what the issue was that you describing in the original post. I'm not sure why it would only have the ammo. Could you try removing the entry for ammo.rifle and see if it works?

If I find the time, I will try testing this myself to see if I can get it working properly with your configuration.
by default, it's only m249 + 50 ammo, ive added mod for see what happens but it's same...

Of course, i can try

Merged post

I've try with:
{
  "HeliInventoryLists": [
    {
      "lootBoxContents": [
		{
          "name": "ammo.rifle",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 128,
          "skinID": 0
        },
        {
          "name": "ammo.rifle.hv",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 128,
          "skinID": 0
        },
        {
          "name": "ammo.rifle.incendiary",
          "amountMin": 0,
          "amountMax": 0,
		  "amount": 128
        },
        {
          "name": "ammo.rifle.explosive",
          "amountMin": 0,
          "amountMax": 0,
		  "amount": 128
        }
      ]
    },
	{
      "lootBoxContents": [
        {
          "name": "explosive.timed",
          "amountMin": 1,
          "amountMax": 3,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.rocket.fire",
          "amountMin": 2,
          "amountMax": 6,
          "amount": 0,
          "skinID": 0
        }
      ]
    },
    {
      "lootBoxContents": [
        {
          "name": "lmg.m249",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
		{
          "name": "weapon.mod.flashlight",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "weapon.mod.holosight",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "weapon.mod.muzzlebrake",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        }
      ]
    },
	{
      "lootBoxContents": [
	  {
          "name": "rifle.lr300",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "ammo.rifle",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 25,
          "skinID": 0
        }
      ]
    },
    {
      "lootBoxContents": [
        {
          "name": "rifle.m39",
          "amountMin": 0,
          "amountMax": 1,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.rifle",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 25,
          "skinID": 0
        }
      ]
    },
	{
      "lootBoxContents": [
        {
          "name": "ammo.rocket.basic",
          "amountMin": 0,
          "amountMax": 6,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.rocket.fire",
          "amountMin": 0,
          "amountMax": 6,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.rocket.hv",
          "amountMin": 0,
          "amountMax": 6,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.rocket.sam",
          "amountMin": 3,
          "amountMax": 6,
          "amount": 0,
          "skinID": 0
        }		
      ]
    },
    {
      "lootBoxContents": [
        {
          "name": "explosive.timed",
          "amount": 3
        },
        {
          "name": "ammo.rocket.basic",
          "amount": 3
        }
      ]
    },
    {
      "lootBoxContents": [
        {
          "name": "ammo.pistol",
          "amountMin": 128,
          "amountMax": 256,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.pistol.fire",
          "amountMin": 128,
          "amountMax": 256,
          "amount": 0,
          "skinID": 0
        },
		{
          "name": "ammo.pistol.hv",
          "amountMin": 128,
          "amountMax": 256,
          "amount": 0,
          "skinID": 0
        }
      ]
    },
	{
      "lootBoxContents": [
        {
          "name": "ammo.grenadelauncher.buckshot",
          "amountMin": 2,
          "amountMax": 6,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.grenadelauncher.he",
          "amountMin": 3,
          "amountMax": 9,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "ammo.grenadelauncher.smoke",
          "amountMin": 3,
          "amountMax": 9,
          "amount": 0,
          "skinID": 0
        },		
        {
          "name": "multiplegrenadelauncher",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        }
	  ]
    },
	{
      "lootBoxContents": [
        {
          "name": "weapon.mod.flashlight",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "weapon.mod.holosight",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "weapon.mod.lasersight",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "weapon.mod.muzzleboost",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "weapon.mod.muzzlebrake",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        },
        {
          "name": "weapon.mod.silencer",
          "amountMin": 0,
          "amountMax": 0,
          "amount": 1,
          "skinID": 0
        }		
	  ]
    },
	{
      "lootBoxContents": [
        {
          "name": "techparts",
          "amountMin": 1,
          "amountMax": 10,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "cctv.camera",
          "amountMin": 3,
          "amountMax": 6,
          "amount": 0,
          "skinID": 0
        },
        {
          "name": "targeting.computer",
          "amountMin": 1,
          "amountMax": 3,
          "amount": 0,
          "skinID": 0
        }		
      ]
    }
  ]
}​

I don't understand anything anymore, I received a case with 50 5.56 ammunitions only .... I simply unloaded and loaded the plugin so if a restart is necessary, I would do it tomorrow;)


Other problem:
Creating item with less than 1 amount! (M39 Rifle)​

which would explain why I never get m39 in the loot...
Your M39 issue is actually a different one entirely, although I'm not sure why the plugin isn't automatically correcting it. In your config for the M39, you have the amount set to 0, while the amountMin is also set to 0, and amountMax is set 1. This is going to always result in 0, meaning the M39 won't be created. You should set amountMin and amountMax to 0, and "amount" to 1.

As for the original issue of the 5.56, as I said, I will try to find some time to figure this out on my own test server, however, I've been trying to adapt to ongoing changes with the current state of the world & the tough times that are ensuing, so my time is a bit more limited.
Thanks for the explanation, I will correct it immediately for the m39.

No worrie, thanks, wait & see ;)