{"name":"BIS_fnc_inv","operator":null,"title":"BIS fnc inv","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_inv","revid":327932,"updated":"2022-07-13T12:32:54Z","groups":["Inventory"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns inventory contents of given vehicle (unit). For vehicles it returns mounted gun and its ammo, **not** cargo weapons and ammo.","syntaxes":[{"syntax":"[unit] call BIS_fnc_inv","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"unit or vehicle","types":["Object"],"since":null,"text":"unit: Object - unit or vehicle"}],"returns":{"type":"Array of Config","types":["Array","Config"],"description":"weapons then magazines","text":"Array of Config - weapons then magazines"}}],"examples":[{"text":"```sqf\n[player] call BIS_fnc_inv;\n```","code":["[player] call BIS_fnc_inv;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_invAdd","BIS_fnc_invRemove","BIS_fnc_invCodeToArray","BIS_fnc_invString","BIS_fnc_invSlots","BIS_fnc_invSlotsEmpty","BIS_fnc_invSlotType"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Inventory","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}