Skip to content

Metatable:Party

WibbenZ edited this page Dec 31, 2017 · 4 revisions

The Party metatable contains all of the methods that handle parties.
Creating an instance of the Party metatable (2 options):

local party = Party(player name)
local party = Party(player userdata)

Available methods:

addInvite(player)
addMember(player)
disband()
getInviteeCount()
getInvitees()
getLeader()
getMemberCount()
getMembers()
isSharedExperienceActive()
isSharedExperienceEnabled()
removeInvite(player)
removeMember(player)
setLeader(player)
setSharedExperience(active)
shareExperience(experience)


addInvite(player)

Description: N/A
Parameters:

  • player - No description
Returns: N/A
Example:
local party = Party(...)
party:addInvite(some_userdata)

Added in version: 1.0


addMember(player)

Description: N/A
Parameters:

  • player - No description
Returns: N/A
Example:
local party = Party(...)
party:addMember(some_userdata)

Added in version: 1.0


disband()

Description: N/A
Parameters: None
Returns: N/A
Example:

local party = Party(...)
party:disband()

Added in version: 1.0


getInviteeCount()

Description: N/A
Parameters: None
Returns: N/A
Example:

local party = Party(...)
party:getInviteeCount()

Added in version: 1.0


getInvitees()

Description: N/A
Parameters: None
Returns: N/A
Example:

local party = Party(...)
party:getInvitees()

Added in version: 1.0


getLeader()

Description: N/A
Parameters: None
Returns: N/A
Example:

local party = Party(...)
party:getLeader()

Added in version: 1.0


getMemberCount()

Description: N/A
Parameters: None
Returns: N/A
Example:

local party = Party(...)
party:getMemberCount()

Added in version: 1.0


getMembers()

Description: N/A
Parameters: None
Returns: N/A
Example:

local party = Party(...)
party:getMembers()

Added in version: 1.0


isSharedExperienceActive()

Description: N/A
Parameters: None
Returns: N/A
Example:

local party = Party(...)
party:isSharedExperienceActive()

Added in version: 1.0


isSharedExperienceEnabled()

Description: N/A
Parameters: None
Returns: N/A
Example:

local party = Party(...)
party:isSharedExperienceEnabled()

Added in version: 1.0


removeInvite(player)

Description: N/A
Parameters:

  • player - No description
Returns: N/A
Example:
local party = Party(...)
party:removeInvite(some_userdata)

Added in version: 1.0


removeMember(player)

Description: N/A
Parameters:

  • player - No description
Returns: N/A
Example:
local party = Party(...)
party:removeMember(some_userdata)

Added in version: 1.0


setLeader(player)

Description: N/A
Parameters:

  • player - No description
Returns: N/A
Example:
local party = Party(...)
party:setLeader(some_userdata)

Added in version: 1.0


setSharedExperience(active)

Description: N/A
Parameters:

  • active - No description
Returns: N/A
Example:
local party = Party(...)
party:setSharedExperience(unknown)

Added in version: 1.0


shareExperience(experience)

Description: N/A
Parameters:

  • experience - No description
Returns: N/A
Example:
local party = Party(...)
party:shareExperience(100)

Added in version: 1.0

Clone this wiki locally