Fandom

WoWWiki

API GetNumPartyMembers

104,637pages on
this wiki
Add New Page
Talk0 Share

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 < GetNumPartyMembers

Returns number of party members.

partyMembers = GetNumPartyMembers()

ReturnsEdit

partyMembers 
Number - The number of party members, excluding the player (0 to 4).

ExampleEdit

The snippet below adds a message stating the number of people in the player's current party to the default chat frame.

print("There are " .. GetNumPartyMembers() .. " other people in your party.");

NotesEdit

  • While in a battleground, this function returns information about your battleground party. You may retrieve information about your non-battleground party using GetRealNumPartyMembers().
  • While in a raid, you are also in a party. You might be the only person in your raidparty, so this function could still return 0.

See AlsoEdit

Also on Fandom

Random Wiki