{"name":"BIS_fnc_showRespawnMenuDisableItem","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.60"}],"since":{"game":"arma3","name":"Arma 3","version":"1.60"},"arma3_since":"1.60","branch":null,"locality":{"argument":null,"effect":"global","server_exec":false},"exec":null,"description":"Disables respawn loadout, role or position for Arma 3: Respawn.\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","since":null,"effect":null,"exec":null,"params":[{"name":"mode","type":"String","optional":false,"default":null,"description":"available options are *disable*, *enable* and *state*","types":["String"],"since":null,"text":"**mode**: String - available options are *disable*, *enable* and *state*"},{"name":"uiControl","type":"Control","optional":false,"default":null,"description":"list in which item should be disabled/enabled\n- BIS_RscRespawnControlsMap_ctrlLocList\n- BIS_RscRespawnControlsMap_ctrlRoleList\n- BIS_RscRespawnControlsMap_ctrlComboLoadout","types":["Control"],"since":null,"text":"**uiControl**: Control - list in which item should be disabled/enabled\n- BIS_RscRespawnControlsMap_ctrlLocList\n- BIS_RscRespawnControlsMap_ctrlRoleList\n- BIS_RscRespawnControlsMap_ctrlComboLoadout"},{"name":"listboxItem","type":"Number or String","optional":false,"default":null,"description":"index or name of item in the respawn loadout/role/position listbox","types":["Number","String"],"since":null,"text":"**listboxItem**: Number or String - index or name of item in the respawn loadout/role/position listbox"},{"name":"message","type":"String","optional":false,"default":null,"description":"message shown when disabled item is selected, use \"\" for default message","types":["String"],"since":null,"text":"**message**: String - message shown when disabled item is selected, use \"\" for default message"},{"name":"respawnReference","type":"String","optional":false,"default":null,"description":"reference to respawn position either Marker name or Object var name","types":["String"],"since":null,"text":"**respawnReference**: String - reference to respawn position either Marker name or Object var name"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"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;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_addRespawnInventory","BIS_fnc_addRespawnPosition","Arma 3: Respawn"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Respawn","Functions","Functions: Global Effect","Introduced with Arma 3 version 1.60"],"docblock":null,"filled_from_docblock":[]}