{"name":"setInfoPanel","operator":null,"title":"setInfoPanel","type":"command","url":"https://community.bistudio.com/wiki/setInfoPanel","revid":364317,"updated":"2024-05-06T09:38:47Z","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":"Opens given component or first component of given component type on specified info panel.","syntaxes":[{"syntax":"setInfoPanel [infoPanelId, componentClassOrType]","since":null,"effect":null,"exec":null,"params":[{"name":"infoPanelId","type":"String","optional":false,"default":null,"description":"info panel classname, or \"left\" or \"right\"","types":["String"],"since":null,"text":"infoPanelId: String - info panel classname, or \"left\" or \"right\""},{"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 panel was successfully opened, false otherwise (e.g. opening GPS on player without GPS item or setting panel to vehicle that doesn't have such capability configured)","text":"Boolean - true if panel was successfully opened, false otherwise (e.g. opening GPS on player without GPS item or setting panel to vehicle that doesn't have such capability configured)"},"form":"unary","operator":null,"left":null,"right":{"text":"[infoPanelId, componentClassOrType]","types":["Array"]}}],"examples":[{"text":"```sqf\n// opens slingload assistant on right panel\nprivate _result = setInfoPanel [\"VehicleSystemsDisplayManagerComponentRight\", \"SlingLoadDisplayComponent\"];\nif (!_result) then { hint \"could not open the slingload assistant, sorry\" };\n```","code":["// opens slingload assistant on right panel\nprivate _result = setInfoPanel [\"VehicleSystemsDisplayManagerComponentRight\", \"SlingLoadDisplayComponent\"];\nif (!_result) then { hint \"could not open the slingload assistant, sorry\" };"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: Custom Info","infoPanel","infoPanels","infoPanelComponents","enableInfoPanelComponent","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"]}