{"name":"BIS_fnc_exportInventory","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","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Exports unit's loadout as a String, also copies it to clipboard.","syntaxes":[{"syntax":"[unit, type, includeIdentity] call BIS_fnc_exportInventory","params":[{"name":"unit","type":"Object","optional":true,"default":"player","description":"unit whose loadout should be saved","type_expr":"Object","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\n- \"script\" - scripting commands, target is referred to as `_unit`\n- \"init\" - scripting commands, target is referred to as `this`\n- \"config\" - config attributes","type_expr":"String","text":"type: String - (Optional, default \"script\") export type, can be:\n\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)","type_expr":"Boolean","text":"includeIdentity: Boolean - (Optional, default true) true to also export face, voice and insignia (applicable to \"script\" and \"init\" only)"}],"returns":{"type":"String","type_expr":"String","description":"SQF code or Config text when \"config\" option is chosen"}}],"examples":[{"code":["[player, \"init\", true] call BIS_fnc_exportInventory;"]}],"see_also":["BIS_fnc_loadInventory","BIS_fnc_deleteInventory","BIS_fnc_saveInventory","getUnitLoadout"]}