{"name":"BIS_fnc_saveInventory","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","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Save unit's loadout.","syntaxes":[{"syntax":"[unit, input, params, delete] call BIS_fnc_saveInventory","params":[{"name":"unit","type":"Object","description":"unit whose inventory should be saved","type_expr":"Object"},{"name":"input","type":"Array format [target, loadoutName]:","description":"Array format [target, loadoutName]:\n\n- target: Namespace, Group or Object - target where the loadout is stored\n- loadoutName: String - loadout name","type_expr":"Array","text":"input: Array format [target, loadoutName]:\n\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","type_expr":"Array","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","type_expr":"Boolean","text":"delete: Boolean - (Optional, default false) whether or not to delete the loadout"}],"returns":{"type":"Array","type_expr":"Array","description":"saved value"}}],"examples":[{"code":["[player, [missionNamespace, \"BIS_inv\"], [], true] call BIS_fnc_saveInventory;"]}],"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."}]}