{"name":"BIS_fnc_saveInventory","operator":null,"title":"BIS fnc saveInventory","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_saveInventory","revid":378580,"updated":"2026-05-10T21:43:21Z","groups":["Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Save unit's loadout.","syntaxes":[{"syntax":"[unit, input, params, delete] call BIS_fnc_saveInventory","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"unit whose inventory should be saved","types":["Object"],"since":null,"text":"unit: Object - unit whose inventory should be saved"},{"name":"input","type":"Array format [target, loadoutName]:","optional":false,"default":null,"description":"Array format [target, loadoutName]:\n- target: Namespace, Group or Object - target where the loadout is stored\n- loadoutName: String - loadout name","types":["Array"],"since":null,"text":"input: Array format [target, loadoutName]:\n- target: Namespace, Group or Object - target where the loadout is stored\n- loadoutName: String - loadout name"},{"name":"params","type":"Array","optional":true,"default":"[]","description":"custom parameters stored with the loadout","types":["Array"],"since":null,"text":"params: Array - (Optional, default []) custom parameters stored with the loadout"},{"name":"delete","type":"Boolean","optional":true,"default":"false","description":"whether or not to delete the loadout","types":["Boolean"],"since":null,"text":"delete: Boolean - (Optional, default false) whether or not to delete the loadout"}],"returns":{"type":"Array","types":["Array"],"description":"saved value","text":"Array - saved value"}}],"examples":[{"text":"```sqf\n[player, [missionNamespace, \"BIS_inv\"], [], true] call BIS_fnc_saveInventory;\n```","code":["[player, [missionNamespace, \"BIS_inv\"], [], true] call BIS_fnc_saveInventory;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_loadInventory","BIS_fnc_exportInventory","BIS_fnc_deleteInventory","getUnitLoadout"],"notes":[{"user":"Ilias38rus","date":"2020-08-02T15:22:00Z","text":"Doesn't work for backpacks in backpack, unlike getUnitLoadout."}],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Inventory","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}