{"name":"getSteamFriendsServers","operator":null,"title":"getSteamFriendsServers","type":"command","url":"https://community.bistudio.com/wiki/getSteamFriendsServers","revid":309225,"updated":"2022-05-04T10:08:28Z","groups":["System"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.00"}],"since":{"game":"arma3","name":"Arma 3","version":"2.00"},"arma3_since":"2.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns servers information of Steam friends currently playing the game.","syntaxes":[{"syntax":"getSteamFriendsServers","since":null,"effect":null,"exec":null,"params":[],"returns":{"type":null,"types":["Array","String"],"description":null,"text":"Array of Array of Strings in format [ipAndPort, steamFriendName]"},"form":"nullary","operator":null,"left":null,"right":null}],"examples":[{"text":"```sqf\ngetSteamFriendsServers; // returns e.g [[\"127.42.33.8:2302\", \"MyFriend\"], [\"127.84.66.16:4604\", \"My Best Friend\"]]\n```","code":["getSteamFriendsServers; // returns e.g [[\"127.42.33.8:2302\", \"MyFriend\"], [\"127.84.66.16:4604\", \"My Best Friend\"]]"]}],"multiplayer":"> [!IMPORTANT]\n> Does **not** work in multiplayer - returns an empty array.","problems":null,"aliases":[],"see_also":["isMultiplayer","connectToServer"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: System","Introduced with Arma 3 version 2.00","Scripting Commands"]}