{"name":"BIS_fnc_exportInventory","operator":null,"title":"BIS fnc exportInventory","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_exportInventory","revid":378118,"updated":"2026-02-20T08:53:31Z","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":"Exports unit's loadout as a String, also copies it to clipboard.","syntaxes":[{"syntax":"[unit, type, includeIdentity] call BIS_fnc_exportInventory","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":true,"default":"player","description":"unit whose loadout should be saved","types":["Object"],"since":null,"text":"unit: Object - (Optional, default player) unit whose loadout should be saved"},{"name":"type","type":"String","optional":true,"default":"\"script\"","description":"export type, can be:\n- \"script\" - scripting commands, target is referred to as `_unit`\n- \"init\" - scripting commands, target is referred to as `this`\n- \"config\" - config attributes","types":["String"],"since":null,"text":"type: String - (Optional, default \"script\") export type, can be:\n- \"script\" - scripting commands, target is referred to as `_unit`\n- \"init\" - scripting commands, target is referred to as `this`\n- \"config\" - config attributes"},{"name":"includeIdentity","type":"Boolean","optional":true,"default":"true","description":"true to also export face, voice and insignia (applicable to \"script\" and \"init\" only)","types":["Boolean"],"since":null,"text":"includeIdentity: Boolean - (Optional, default true) true to also export face, voice and insignia (applicable to \"script\" and \"init\" only)"}],"returns":{"type":"String","types":["String"],"description":"SQF code or Config text when \"config\" option is chosen","text":"String - SQF code or Config text when \"config\" option is chosen"}}],"examples":[{"text":"```sqf\n[player, \"init\", true] call BIS_fnc_exportInventory;\n```","code":["[player, \"init\", true] call BIS_fnc_exportInventory;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_loadInventory","BIS_fnc_deleteInventory","BIS_fnc_saveInventory","getUnitLoadout"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Inventory","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}