{"name":"BIS_fnc_showRespawnMenuDisableItem","title":"BIS fnc showRespawnMenuDisableItem","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_showRespawnMenuDisableItem","revid":349083,"updated":"2023-11-08T14:47:24Z","groups":["Respawn"],"status":"ok","games":{"arma3":"1.60"},"since":"arma3 1.60","arma3_since":"1.60","locality":{"effect":"global"},"description":"Disables respawn loadout, role or position for Arma 3: Respawn.\n\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.\n- If disabling a position then respawnReference must be supplied","syntaxes":[{"syntax":"[mode, uiControl, listboxItem, message, respawnReference] call BIS_fnc_showRespawnMenuDisableItem","params":[{"name":"mode","type":"String","description":"available options are *disable*, *enable* and *state*","type_expr":"String","text":"**mode**: String - available options are *disable*, *enable* and *state*"},{"name":"uiControl","type":"Control","description":"list in which item should be disabled/enabled\n\n- BIS_RscRespawnControlsMap_ctrlLocList\n- BIS_RscRespawnControlsMap_ctrlRoleList\n- BIS_RscRespawnControlsMap_ctrlComboLoadout","type_expr":"Control","text":"**uiControl**: Control - list in which item should be disabled/enabled\n\n- BIS_RscRespawnControlsMap_ctrlLocList\n- BIS_RscRespawnControlsMap_ctrlRoleList\n- BIS_RscRespawnControlsMap_ctrlComboLoadout"},{"name":"listboxItem","type":"Number or String","description":"index or name of item in the respawn loadout/role/position listbox","type_expr":"Number | String","text":"**listboxItem**: Number or String - index or name of item in the respawn loadout/role/position listbox"},{"name":"message","type":"String","description":"message shown when disabled item is selected, use \"\" for default message","type_expr":"String","text":"**message**: String - message shown when disabled item is selected, use \"\" for default message"},{"name":"respawnReference","type":"String","description":"reference to respawn position either Marker name or Object var name","type_expr":"String","text":"**respawnReference**: String - reference to respawn position either Marker name or Object var name"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"text":"```sqf\n[\n    \"disable\",\n    uiNamespace getVariable \"BIS_RscRespawnControlsMap_ctrlLocList\",\n    2,\n    \"Restricted for this part of mission!\",\n    myRespawnModule call BIS_fnc_objectVar\n] call BIS_fnc_showRespawnMenuDisableItem;\n```","code":["[\n\t\"disable\",\n\tuiNamespace getVariable \"BIS_RscRespawnControlsMap_ctrlLocList\",\n\t2,\n\t\"Restricted for this part of mission!\",\n\tmyRespawnModule call BIS_fnc_objectVar\n] call BIS_fnc_showRespawnMenuDisableItem;"]}],"see_also":["BIS_fnc_addRespawnInventory","BIS_fnc_addRespawnPosition","Arma 3: Respawn"]}