Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
→ WoW API
Returns how many friends you have.
numberOfFriends, onlineFriends = GetNumFriends()
- Integer - The number of friends you have (i.e. the highest valid friend index you can use to get friend information).
- Integer - The number of online friends.
DEFAULT_CHAT_FRAME:AddMessage("I've got " .. (GetNumFriends()) .. " friend(s)");
Displays the number of friends you currently have in the default chat frame.