{"name":"infoPanelComponentEnabled","operator":null,"title":"infoPanelComponentEnabled","type":"command","url":"https://community.bistudio.com/wiki/infoPanelComponentEnabled","revid":377489,"updated":"2026-01-02T06:49:10Z","groups":["Custom Panels"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.72"}],"since":{"game":"arma3","name":"Arma 3","version":"1.72"},"arma3_since":"1.72","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Controls availability of component to given object info panel.","syntaxes":[{"syntax":"unit infoPanelComponentEnabled [panelID, componentClassOrType]","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"the concerned vehicle","types":["Object"],"since":null,"text":"unit: Object - the concerned vehicle"},{"name":"panelID","type":"String","optional":false,"default":null,"description":"\"left\" or \"right\" can be used as panel names","types":["String"],"since":null,"text":"panelID: String - \"left\" or \"right\" can be used as panel names"},{"name":"componentClassOrType","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"componentClassOrType: String"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true if component was successfully enabled on the panel, false otherwise (e.g. component is not available for the object)","text":"Boolean - true if component was successfully enabled on the panel, false otherwise (e.g. component is not available for the object)"},"form":"binary","operator":null,"left":{"text":"unit","types":["Object"]},"right":{"text":"[panelID, componentClassOrType]","types":["Array"]}},{"syntax":"[unit, turretPath] infoPanelComponentEnabled [panelID, componentClassOrType]","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":"the concerned vehicle","types":["Object"],"since":null,"text":"unit: Object - the concerned vehicle"},{"name":"turretPath","type":"Turret Path","optional":false,"default":null,"description":"turret index","types":["Turret Path"],"since":null,"text":"turretPath: Turret Path - turret index"},{"name":"panelID","type":"String","optional":false,"default":null,"description":"\"left\" or \"right\" can be used as panel names","types":["String"],"since":null,"text":"panelID: String - \"left\" or \"right\" can be used as panel names"},{"name":"componentClassOrType","type":"String","optional":false,"default":null,"description":null,"types":["String"],"since":null,"text":"componentClassOrType: String"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"},"form":"binary","operator":null,"left":{"text":"[unit, turretPath]","types":["Array"]},"right":{"text":"[panelID, componentClassOrType]","types":["Array"]}}],"examples":[{"text":"```sqf\n// returns true if specific component \"SensorDisplay\" is enabled on player vehicle's left panel\n_state = [vehicle player, [-1]] infoPanelComponentEnabled [\"VehicleSystemsDisplayManagerComponentLeft\", \"SensorDisplay\"];\n```","code":["// returns true if specific component \"SensorDisplay\" is enabled on player vehicle's left panel\n_state = [vehicle player, [-1]] infoPanelComponentEnabled [\"VehicleSystemsDisplayManagerComponentLeft\", \"SensorDisplay\"];"]},{"text":"```sqf\n// returns true if all \"SensorsDisplayComponent\" components are enabled on player vehicle's left panel, otherwise returns false\n_state = [vehicle player, [-1]] infoPanelComponentEnabled [\"VehicleSystemsDisplayManagerComponentLeft\", \"SensorsDisplayComponent\"];\n```","code":["// returns true if all \"SensorsDisplayComponent\" components are enabled on player vehicle's left panel, otherwise returns false\n_state = [vehicle player, [-1]] infoPanelComponentEnabled [\"VehicleSystemsDisplayManagerComponentLeft\", \"SensorsDisplayComponent\"];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: Custom Info","infoPanel","infoPanels","setInfoPanel","infoPanelComponents","enableInfoPanelComponent"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Custom Panels","Introduced with Arma 3 version 1.72","Scripting Commands"]}