{"name":"BIS_fnc_addRespawnInventory","title":"BIS fnc addRespawnInventory","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_addRespawnInventory","revid":379241,"updated":"2026-10-30T23:18:39Z","groups":["Respawn"],"status":"ok","games":{"arma3":"1.60"},"since":"arma3 1.60","arma3_since":"1.60","locality":{"effect":"global"},"description":"Add a respawn inventory for respawn menu.\nAvailable loadouts are defined in CfgRespawnInventory. Or you may use an existing CfgVehicles soldier class as reference.","syntaxes":[{"syntax":"[target, inventoryParams] call BIS_fnc_addRespawnInventory","params":[{"name":"target","type":"Namespace, Side, Group or Object","description":"Receiver of the respawn loadout\n\n- Namespace - use missionNamespace to add the loadout to everyone\n- Side\n- Group\n- Object","type_expr":"Namespace | Side | Group | Object"},{"name":"inventoryParams","type":"Array or String","description":"Array or String\n\n- String - CfgRespawnInventory class or CfgVehicles soldier class\n- Array - format [class, number, limit]\n  - class: String - CfgRespawnInventory class or CfgVehicles soldier class\n  - number: Number - Number of players who can use this inventory (-1 = no limit, default)\n  - limit: Number - Limit for role assigned to given loadout (-1 = no limit, default)\n    - Only role or only loadout can be limited at one moment, if there is limit for both, then only role uses limit.\n    - If the limit definition for role is called multiple times with different numbers, then the highest number is used.","type_expr":"Array | String","text":"inventoryParams: Array or String\n\n- String - CfgRespawnInventory class or CfgVehicles soldier class\n- Array - format [class, number, limit]\n  - class: String - CfgRespawnInventory class or CfgVehicles soldier class\n  - number: Number - Number of players who can use this inventory (-1 = no limit, default)\n  - limit: Number - Limit for role assigned to given loadout (-1 = no limit, default)\n    - Only role or only loadout can be limited at one moment, if there is limit for both, then only role uses limit.\n    - If the limit definition for role is called multiple times with different numbers, then the highest number is used."}],"returns":{"type":"Array","type_expr":"Array","description":"format [target, id] used in BIS_fnc_removeRespawnInventory"}}],"examples":[{"code":["[west, \"WEST1\"] call BIS_fnc_addRespawnInventory;"]},{"code":["private _myRespawnInventory = [missionNamespace, \"ATSniper\"] call BIS_fnc_addRespawnInventory;"]}],"see_also":["Arma 3: Respawn","BIS_fnc_removeRespawnInventory","BIS_fnc_getRespawnInventories","BIS_fnc_setRespawnInventory"]}