Wikia

WoWWiki

API GetNumFriends

Talk0
98,523pages on
this wiki
Revision as of 06:05, June 24, 2010 by Egingell (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)

Returns how many friends you have.

numberOfFriends, onlineFriends = GetNumFriends()

Parameters

Returns

numberOfFriends 
Integer - The number of friends you have (i.e. the highest valid friend index you can use to get friend information).
onlineFriends 
Integer - The number of online friends.

Example

DEFAULT_CHAT_FRAME:AddMessage("I've got " .. (GetNumFriends()) .. " friend(s)");

Result

Displays the number of friends you currently have in the default chat frame.

Advertisement | Your ad here

Photos

Add a Photo
62,044photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki