{"name":"getSlotItemName","title":"getSlotItemName","type":"command","url":"https://community.bistudio.com/wiki/getSlotItemName","revid":353032,"updated":"2024-03-12T11:47:36Z","groups":["Unit Inventory"],"status":"ok","games":{"arma3":"2.14"},"since":"arma3 2.14","arma3_since":"2.14","description":"Returns the name of assigned item in given slot or the empty string.","syntaxes":[{"syntax":"unit getSlotItemName slot","params":[{"name":"unit","type":"Object","type_expr":"Object"},{"name":"slot","type":"Number","description":"can be one of:\n\n- 603 - Goggles\n- 605 - Headgear\n- 608 - Map\n- 609 - Compass\n- 610 - Watch\n- 611 - Radio\n- 612 - GPS\n- 616 - HMD\n- 617 - Binoculars\n- 701 - Vest\n- 801 - Uniform\n- 901 - Backpack","type_expr":"Number"}],"returns":{"type":"String","type_expr":"String","description":"item name"},"form":"binary","left":{"text":"unit"},"right":{"text":"slot"}}],"examples":[{"code":["hint (player getSlotItemName 610);"]}],"see_also":["assignedItems","assignItem","unassignItem","linkItem","unlinkItem","addItem","removeItem","removeAllAssignedItems","items","itemsWithMagazines","backpacks"]}