{"name":"BIS_fnc_hasItem","title":"BIS fnc hasItem","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_hasItem","revid":328409,"updated":"2022-07-13T16:00:50Z","groups":["Inventory"],"status":"ok","games":{"arma3":"1.94"},"since":"arma3 1.94","arma3_since":"1.94","description":"Returns true if object contains given item in inventory / cargo storage.\n\n> [!IMPORTANT]\n> This function performs a deep search of inventory / cargo storage, thus is not suitable for per-frame execution.","syntaxes":[{"syntax":"[object, item, searchCrew] call BIS_fnc_hasItem","params":[{"name":"object","type":"Object or Group","description":"unit, vehicle, container or group of units (since v1.95)","type_expr":"Object | Group"},{"name":"item","type":"String","description":"item to find","type_expr":"String"},{"name":"searchCrew","type":"Boolean","optional":true,"default":"false","description":"true to search vehicle crew as well if object is a vehicle","type_expr":"Boolean","text":"searchCrew: Boolean - (Optional, default false) true to search vehicle crew as well if object is a vehicle"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true if has item"}}],"examples":[{"code":["[player, \"ItemMap\"] call BIS_fnc_hasItem;"]},{"code":["[tank, \"FirstAidKit\", true] call BIS_fnc_hasItem;"]}]}