{"name":"everyContainer","title":"everyContainer","type":"command","url":"https://community.bistudio.com/wiki/everyContainer","revid":378321,"updated":"2026-04-02T16:20:45Z","groups":["Vehicle Inventory"],"status":"ok","games":{"arma3":"1.22"},"since":"arma3 1.22","arma3_since":"1.22","description":"Returns array of all containers (uniforms, vests, backpacks) stored in given crate or vehicle. Used for accessing containers content stored in ammo box or ground holder.","syntaxes":[{"syntax":"everyContainer object","params":[{"name":"object","type":"Object","description":"vehicle or ammo box","type_expr":"Object"}],"returns":{"type":"Array of Arrays","type_expr":"Array<Array>","description":"with [class, container]\n- class: String - class name of the container - container: Object - container object","text":"Array of Arrays with [class, container]\n\n- class: String - class name of the container\n- container: Object - container object"},"form":"unary","right":{"text":"object"}}],"examples":[{"text":"```sqf\neveryContainer cursorTarget;\n/*\n    returns e.g\n    [\n        [\"V_PlateCarrier1_rgr\",2bc06b00# 163955: dummyweapon.p3d],\n        [\"U_B_CombatUniform_mcam\",2bc07900# 163954: dummyweapon.p3d]\n    ]\n*/\n```","code":["everyContainer cursorTarget;\n/*\n\treturns e.g\n\t[\n\t\t[\"V_PlateCarrier1_rgr\",2bc06b00# 163955: dummyweapon.p3d],\n\t\t[\"U_B_CombatUniform_mcam\",2bc07900# 163954: dummyweapon.p3d]\n\t]\n*/"]}],"see_also":["everyBackpack","uniformContainer","vestContainer","backpackContainer"],"notes":[{"user":"Yuval","date":"2017-07-20T12:07:00Z","text":"The returned array is in the following format:\n\n```sqf\n[\n    [containerClassname1, containerObject1],\n    [containerClassname2, containerObject2],\n    // ...\n    [containerClassnameN, containerObjectN]\n]\n```\n\nPlease do note that typeOf containerObjectN **does not** return containerClassnameN but rather the containerClass configured in config (usually \"supplyN\")"}]}