Creating a universal ammo type.

Hey guys. So the title pretty much says it all. I wanted to create a universal ammo type for all weapons. (Using M9K if that matters) So I edited the shared.lua on all the weapons. Here is an example:

SWEP.Primary.Sound			= Sound("Dmgfok_co1911.Single")		-- Script that calls the primary fire sound
SWEP.Primary.RPM			= 700			-- This is in Rounds Per Minute
SWEP.Primary.ClipSize			= 7		-- Size of a clip
SWEP.Primary.DefaultClip		= 45		-- Bullets you start with
SWEP.Primary.KickUp				= 0.4		-- Maximum up recoil (rise)
SWEP.Primary.KickDown			= 0.3		-- Maximum down recoil (skeet)
SWEP.Primary.KickHorizontal		= 0.3		-- Maximum up recoil (stock)
SWEP.Primary.Automatic			= false		-- Automatic = true; Semi Auto = false
SWEP.Primary.Ammo			= "nano"			-- pistol, 357, smg1, ar2, buckshot, slam, SniperPenetratedRound, AirboatGun

I edited SWEP.Primary.Ammo to be =“nano”

Did that to every weapon and uploaded it to the workshop.

Then I went into the darkrp modification custom ammo and made this

DarkRP.createAmmoType("nano", {
	name = "Universal Ammo",
	model = "models/Items/BoxMRounds.mdl",
	price = 500,
	amountGiven = 30,
	allowed = {TEAM_GUN}})

The ammo exists in the game now, I can buy it. But it doesnt work.

No need to upload it to the workshop, use the weapon settings from DarkRP Modification Module, loop through all weapons by using

weapons.GetList, checking if their .Class starts with “m9k_” and then change Primary.Ammo to the ammo type you want.

Im sorry, im not exactly the best with lua, what exactly would I need to put in the weapons settings?