{"name":"enableInfoPanelComponent","operator":null,"title":"enableInfoPanelComponent","type":"command","url":"https://community.bistudio.com/wiki/enableInfoPanelComponent","revid":378366,"updated":"2026-04-03T16:46:18Z","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 enableInfoPanelComponent [panelID, componentClassOrType, enable]","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"},{"name":"enable","type":"Boolean","optional":false,"default":null,"description":null,"types":["Boolean"],"since":null,"text":"enable: Boolean"}],"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, enable]","types":["Array"]}},{"syntax":"[unit, turretPath] enableInfoPanelComponent [panelID, componentClassOrType, enable]","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"},{"name":"enable","type":"Boolean","optional":false,"default":null,"description":null,"types":["Boolean"],"since":null,"text":"enable: Boolean"}],"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, turretPath]","types":["Array"]},"right":{"text":"[panelID, componentClassOrType, enable]","types":["Array"]}}],"examples":[{"text":"```sqf\n// enables slingload assistant on player's vehicle right panel at driver position\n[vehicle player, [-1]] enableInfoPanelComponent [\"VehicleSystemsDisplayManagerComponentRight\", \"SlingLoadDisplay\", true];\n```","code":["// enables slingload assistant on player's vehicle right panel at driver position\n[vehicle player, [-1]] enableInfoPanelComponent [\"VehicleSystemsDisplayManagerComponentRight\", \"SlingLoadDisplay\", true];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: Custom Info","infoPanel","infoPanels","setInfoPanel","infoPanelComponents","infoPanelComponentEnabled"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Custom Panels","Introduced with Arma 3 version 1.72","Scripting Commands"]}