mrwolv 46 Posted January 13, 2019 (edited) hi guys so i want to add items to the ammo box so there is a chance of ammo to spawn in them. have i done this correctly or not as i dont seem to get ammo spawning in them ive added this to cfgspawnabletypes.xml and in types.xml do i need to change anything i have changed the count_in_cargo="0" to count_in_cargo="1" <!-- This typesxml --> <type name="AmmoBox"> <nominal>45</nominal> <lifetime>3888000</lifetime> <restock>0</restock> <min>20</min> <quantmin>-1</quantmin> <quantmax>-1</quantmax> <cost>100</cost> <flags count_in_cargo="1" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="1"/> <category name="containers"/> <usage name="Military"/> <value name="Tier2"/> <value name="Tier3"/> <value name="Tier4"/> </type> <!-- This cfgspawnabletypes.xml --> <!-- AmmoBox --> <type name="AmmoBox"> <cargo chance="1.00"> <item name="Ammo_556x45" chance="0.50" /> <item name="Ammo_762x39" chance="0.10" /> <item name="Ammo_762x54" chance="0.15" /> <item name="Ammo_9x19" chance="0.15" /> <item name="Ammo_9x39" chance="0.60" /> <item name="Ammo_357" chance="0.30" /> <item name="Ammo_22" chance="0.10" /> <item name="Ammo_45ACP" chance="0.10" /> <item name="Ammo_308Win" chance="0.30" /> </cargo> </type> Edited January 13, 2019 by mrwolv Share this post Link to post Share on other sites
SasGuatch 10 Posted January 13, 2019 flags deloot needs to be disabled ="0". maybe. Share this post Link to post Share on other sites
mrwolv 46 Posted January 13, 2019 34 minutes ago, SasGuatch said: flags deloot needs to be disabled ="0". maybe. will give that a try and let you know Share this post Link to post Share on other sites
drgullen 596 Posted January 14, 2019 Each item needs its own cargo tag, like this: <cargo chance="1.00"> <item name="Ammo_556x45" chance="0.50" /> </cargo> Share this post Link to post Share on other sites
mrwolv 46 Posted January 14, 2019 2 hours ago, drgullen said: Each item needs its own cargo tag, like this: <cargo chance="1.00"> <item name="Ammo_556x45" chance="0.50" /> </cargo> i did try that but no luck i had it like this <!-- AmmoBox --> <type name="AmmoBox"> <cargo chance="1.00"> <item name="Ammo_556x45" chance="0.50" /> </cargo> <cargo chance="1.00"> <item name="Ammo_762x39" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_762x54" chance="0.15" /> </cargo> <cargo chance="1.00"> <item name="Ammo_9x19" chance="0.15" /> </cargo> <cargo chance="1.00"> <item name="Ammo_9x39" chance="0.60" /> </cargo> <cargo chance="1.00"> <item name="Ammo_357" chance="0.30" /> </cargo> <cargo chance="1.00"> <item name="Ammo_22" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_45ACP" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_308Win" chance="0.30" /> </cargo> </type> Share this post Link to post Share on other sites
drgullen 596 Posted January 14, 2019 You probably need to wipe your persistence files -- ammo boxes have a lifetime of 45 days, so the ammo boxes you are looking at might have been spawns from before you made this change when they were empty. Share this post Link to post Share on other sites
mrwolv 46 Posted January 14, 2019 i did i set them all to despawn on the map after 180 seconds then fresh respawned and still nothing Share this post Link to post Share on other sites
mrwolv 46 Posted January 20, 2019 Still having issues with getting ammo boxes to spawn here is the text i have tryed but still no luck if someone can figure this out please help <!-- AmmoBox --> <type name="AmmoBox"> <cargo chance="1.00"> <item name="AmmoBox_556x45_20Rnd" chance="0.70" /> <item name="AmmoBox_556x45_20Rnd" chance="0.70" /> <item name="AmmoBox_556x45_20Rnd" chance="0.70" /> <item name="AmmoBox_556x45_20Rnd" chance="0.70" /> <item name="AmmoBox_762x39_20Rnd" chance="0.20" /> <item name="AmmoBox_762x39_20Rnd" chance="0.20" /> <item name="AmmoBox_762x39_20Rnd" chance="0.20" /> <item name="AmmoBox_762x39_20Rnd" chance="0.20" /> <item name="AmmoBox_762x54_20Rnd" chance="0.25" /> <item name="AmmoBox_762x54_20Rnd" chance="0.25" /> <item name="AmmoBox_762x54_20Rnd" chance="0.25" /> <item name="AmmoBox_762x54_20Rnd" chance="0.25" /> <item name="AmmoBox_9x19_25rnd" chance="0.25" /> <item name="AmmoBox_9x19_25rnd" chance="0.25" /> <item name="AmmoBox_9x19_25rnd" chance="0.25" /> <item name="AmmoBox_9x19_25rnd" chance="0.25" /> <item name="AmmoBox_9x39_20Rnd" chance="0.70" /> <item name="AmmoBox_9x39_20Rnd" chance="0.70" /> <item name="AmmoBox_9x39_20Rnd" chance="0.70" /> <item name="AmmoBox_9x39_20Rnd" chance="0.70" /> <item name="AmmoBox_357_20Rnd" chance="0.40" /> <item name="AmmoBox_357_20Rnd" chance="0.40" /> <item name="AmmoBox_357_20Rnd" chance="0.40" /> <item name="AmmoBox_357_20Rnd" chance="0.40" /> <item name="AmmoBox_22_50Rnd" chance="0.20" /> <item name="AmmoBox_22_50Rnd" chance="0.20" /> <item name="AmmoBox_22_50Rnd" chance="0.20" /> <item name="AmmoBox_22_50Rnd" chance="0.20" /> <item name="AmmoBox_45ACP_25rnd" chance="0.20" /> <item name="AmmoBox_45ACP_25rnd" chance="0.20" /> <item name="AmmoBox_45ACP_25rnd" chance="0.20" /> <item name="AmmoBox_45ACP_25rnd" chance="0.20" /> <item name="AmmoBox_308Win_20Rnd" chance="0.40" /> <item name="AmmoBox_308Win_20Rnd" chance="0.40" /> <item name="AmmoBox_308Win_20Rnd" chance="0.40" /> <item name="AmmoBox_308Win_20Rnd" chance="0.40" /> </cargo> </type> <!-- AmmoBox --> <type name="AmmoBox"> <cargo chance="1.00"> <item name="Ammo_556x45" chance="0.50" /> </cargo> <cargo chance="1.00"> <item name="Ammo_556x45" chance="0.50" /> </cargo> <cargo chance="1.00"> <item name="Ammo_556x45" chance="0.50" /> </cargo> <cargo chance="1.00"> <item name="Ammo_556x45" chance="0.50" /> </cargo> <cargo chance="1.00"> <item name="Ammo_762x39" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_762x39" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_762x39" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_762x39" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_762x54" chance="0.15" /> </cargo> <cargo chance="1.00"> <item name="Ammo_762x54" chance="0.15" /> </cargo> <cargo chance="1.00"> <item name="Ammo_762x54" chance="0.15" /> </cargo> <cargo chance="1.00"> <item name="Ammo_762x54" chance="0.15" /> </cargo> <cargo chance="1.00"> <item name="Ammo_9x19" chance="0.15" /> </cargo> <cargo chance="1.00"> <item name="Ammo_9x19" chance="0.15" /> </cargo> <cargo chance="1.00"> <item name="Ammo_9x19" chance="0.15" /> </cargo> <cargo chance="1.00"> <item name="Ammo_9x19" chance="0.15" /> </cargo> <cargo chance="1.00"> <item name="Ammo_9x39" chance="0.60" /> </cargo> <cargo chance="1.00"> <item name="Ammo_9x39" chance="0.60" /> </cargo> <cargo chance="1.00"> <item name="Ammo_9x39" chance="0.60" /> </cargo> <cargo chance="1.00"> <item name="Ammo_9x39" chance="0.60" /> </cargo> <cargo chance="1.00"> <item name="Ammo_357" chance="0.30" /> </cargo> <cargo chance="1.00"> <item name="Ammo_357" chance="0.30" /> </cargo> <cargo chance="1.00"> <item name="Ammo_357" chance="0.30" /> </cargo> <cargo chance="1.00"> <item name="Ammo_357" chance="0.30" /> </cargo> <cargo chance="1.00"> <item name="Ammo_22" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_22" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_22" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_22" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_45ACP" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_45ACP" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_45ACP" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_45ACP" chance="0.10" /> </cargo> <cargo chance="1.00"> <item name="Ammo_308Win" chance="0.30" /> </cargo> <cargo chance="1.00"> <item name="Ammo_308Win" chance="0.30" /> </cargo> <cargo chance="1.00"> <item name="Ammo_308Win" chance="0.30" /> </cargo> <cargo chance="1.00"> <item name="Ammo_308Win" chance="0.30" /> </cargo> </type> Share this post Link to post Share on other sites