Code:
/run for x=1,GetNumFriends() do RemoveFriend(x) end
Nukes your entire friendslist, but from what I remember it also fixes that glitch while at it.
You`ll have to readd all your friends after doing so, tho
Not sure what bug he's talking about, but you could re-add friends as soon as they're removed with this:
Code:
/run local removed; for n = 1, GetNumFriends() do removed = GetFriendInfo(n); RemoveFriend(n); AddFriend(removed) end
Edit: Actually that looks like it might cause issues, probably better to shove friend names in a backup table first and then re-add them.
Code:
/run local backup; for n = 1, GetNumFriends() do table.insert(backup, (GetFriendInfo(n))); RemoveFriend(n) end; for _, name in pairs(backup) do AddFriend(name) end
Edit: Even that bothers me. Won't each friend's position change as one friend is removed? Like if you wanted to nuke it you could just RemoveFriend(1) N amount of times, no? Maybe the friends list doesn't function like a normal table so I could be wrong. If I'm not wrong it's best to do the backup first, and then the removal and addition based off of names like this:
Code:
/run local backup; for n = 1, GetNumFriends() do table.insert(backup, (GetFriendInfo(n))) end; for _, name in pairs(backup) do RemoveFriend(name); AddFriend(name) end