Ulmann 45 Posted April 29, 2018 Hello, I have another question: It is possible to save vehicle inventory and add it again to vehicle after respawn in MP? Share this post Link to post Share on other sites
Dedmen 2581 Posted May 7, 2018 Yes https://community.bistudio.com/wiki/getWeaponCargo https://community.bistudio.com/wiki/addWeaponCargoGlobal https://community.bistudio.com/wiki/getItemCargo https://community.bistudio.com/wiki/addItemCargoGlobal https://community.bistudio.com/wiki/getMagazineCargo https://community.bistudio.com/wiki/getBackpackCargo But you won't be able to add weapons with attachments back properly. That's just not possible without hideous workarounds. Share this post Link to post Share on other sites
maihym 12 Posted May 7, 2018 12 minutes ago, Dedmen said: Yes https://community.bistudio.com/wiki/getWeaponCargo https://community.bistudio.com/wiki/addWeaponCargoGlobal https://community.bistudio.com/wiki/getItemCargo https://community.bistudio.com/wiki/addItemCargoGlobal https://community.bistudio.com/wiki/getMagazineCargo https://community.bistudio.com/wiki/getBackpackCargo But you won't be able to add weapons with attachments back properly. That's just not possible without hideous workarounds. What about items in backpacks or vests? Share this post Link to post Share on other sites
Dedmen 2581 Posted May 7, 2018 8 minutes ago, maihym said: What about items in backpacks or vests? Ohhhh man... You can first use getBackpackCargo/addBackpackCargoGlobal to store and re-add the empty backpacks. Then you can use https://community.bistudio.com/wiki/everyBackpack to get a list of all backpacks in the vehicle. each backpack then is a object that you can use getWeaponCargo/getItemCargo/getMagazineCargo on. So for storing you take all backpacks, and store getXCargo for each of them. For re-adding them you addBackpackCargoGlobal the backpacks. And then use everyBackpack to get all backpacks you just added and then use the addXCargoGlobal commands to re-add the items Yes. It's a chore. Share this post Link to post Share on other sites