Play3r 147 Posted May 21, 2021 Hi all you great helpers. If i want to add some : ammo, backpacks, weapons, googles, uniforms and more into a spawned ammobox. i have tried this LL_BoatBoxLand = createVehicle ["rhs_7ya37_1_single", position player, [], 0, "NONE"]; clearItemCargo LL_BoatBoxLand; LL_BoatBoxLand additemcargo ["30Rnd_556X45_Stanag, 5"]; i don't know if i use a wrong command. Cheers Play3r Share this post Link to post Share on other sites
pierremgi 4923 Posted May 21, 2021 The second quote is not at the right place. LL_BoatBoxLand additemcargo ["30Rnd_556X45_Stanag", 5]; In MP, use addItemCargoGlobal if you run the code locally (server or else). addItemCargo is fine if you run the code everywhere (not usual). 1 Share this post Link to post Share on other sites
Play3r 147 Posted May 21, 2021 3 hours ago, pierremgi said: The second quote is not at the right place. LL_BoatBoxLand additemcargo ["30Rnd_556X45_Stanag", 5]; In MP, use addItemCargoGlobal if you run the code locally (server or else). addItemCargo is fine if you run the code everywhere (not usual). LOL why did't i see that error. It is for SP Thx Pierremgi Share this post Link to post Share on other sites
Joe98 92 Posted May 22, 2021 8 hours ago, Play3r said: It is for SP Instead of spawning, create the ammo box with the correct contents and then move it using a trigger. 1 Share this post Link to post Share on other sites
Play3r 147 Posted May 22, 2021 48 minutes ago, Joe98 said: Instead of spawning, create the ammo box with the correct contents and then move it using a trigger. my problem is that the player is in a boat and can go to shore where he wants, and the ammobox is inside the boat so the player has to take it out of the boat, that's why i need it to spawn where the player is. 1 Share this post Link to post Share on other sites