Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
They won't spawn with anything in them. If you add them as a deployable. You just add the inventory via DB and they will refill in server restartSave's editing any PBO files. Which host are you with?
[[[],[]],[["FoodSteakCooked","FoodCanSardines","FoodCanBakedBeans","FoodCanFrankBeans","FoodCanPasta","ItemSodaCoke","ItemSodaPepsi","ItemSodaMdew","ItemWaterbottle","ItemPainkiller","ItemEpinephrine","ItemMorphine","ItemBloodbag","ItemBandage","ItemAntibiotic"],[15,15,15,15,15,15,15,3,15,20,15,15,20,35,10]],[[],[]]]
Yeah sure, first decide which one you want to use. The small chest type one is USBasicAmmunitionBox_EP1.
Add this to your "deployables" table on the database.
Then create a new player with a random unique ID & random ID, I used 9999999 and 9999. Then create them a "life" in the survivor table and ensure that they are set to alive. (i.e. is_dead is 0) Then, head to instance_deployable and create a deployable instance for your ammo crate. Making sure you use the ID as the one you set for your ammo box.
Set your world space (by placing an object in the editor and using the position from the mission.sqf file the editor makes) Add your inventory, here's mine for a food/med boxCode:[[[],[]],[["FoodSteakCooked","FoodCanSardines","FoodCanBakedBeans","FoodCanFrankBeans","FoodCanPasta","ItemSodaCoke","ItemSodaPepsi","ItemSodaMdew","ItemWaterbottle","ItemPainkiller","ItemEpinephrine","ItemMorphine","ItemBloodbag","ItemBandage","ItemAntibiotic"],[15,15,15,15,15,15,15,3,15,20,15,15,20,35,10]],[[],[]]]
Again use a random unique ID, I used 999999 for the first, then 9999991, 9999992 and so on for my "custom" deployed items.
Set the owner ID to the fake player you created above, this ensures clean up scripts don't delete it.
Done.
This was a little rushed, sorry if ti makes no sense lol