{"name":"openGPS","operator":null,"title":"openGPS","type":"command","url":"https://community.bistudio.com/wiki/openGPS","revid":310316,"updated":"2022-05-05T16:28:36Z","groups":["Interaction"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.04"}],"since":{"game":"arma3","name":"Arma 3","version":"2.04"},"arma3_since":"2.04","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Opens or closes minimap if player has `\"ItemGPS\"` linked in inventory and `\"MinimapDisplayComponent\"` is not disabled with enableInfoPanelComponent. Returns true on success. If more than one minimap is open (see infoPanels, infoPanel) each call to the command will close only 1 minimap. Visibility of minimap can be checked with visibleGPS command.","syntaxes":[{"syntax":"openGPS open","since":null,"effect":null,"exec":null,"params":[{"name":"open","type":"Boolean","optional":false,"default":null,"description":"true to open, false to close","types":["Boolean"],"since":null,"text":"open: Boolean - true to open, false to close"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true on success","text":"Boolean - true on success"},"form":"unary","operator":null,"left":null,"right":{"text":"open","types":["Boolean"]}}],"examples":[{"text":"```sqf\nplayer linkItem \"ItemGPS\";\nprivate _success = openGPS true;\n```","code":["player linkItem \"ItemGPS\";\nprivate _success = openGPS true;"]},{"text":"To close all opened minimaps:\n\n```sqf\nwhile { openGPS false } do { };\n// or\nwhile { visibleGPS } do { openGPS false };\n```","code":["while { openGPS false } do { };\n// or\nwhile { visibleGPS } do { openGPS false };"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["showGPS","shownGPS","visibleGPS"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Interaction","Introduced with Arma 3 version 2.04","Scripting Commands"]}