OnPartyCreate
A party came into being.
The first accepted invitation (or the mode’s first AddPlayerToParty) makes the group with the inviter leading. Fires
before the two joins (OnPlayerJoinParty with "create" for the leader, then the newcomer’s reason).
Syntax
Section titled “Syntax”function OnPartyCreate(party, leader) -- ...end| Parameter | Type | |
|---|---|---|
party |
number | the new party’s id |
leader |
number | the leader |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnPartyCreate(party, leader) SetPartyName(party, GetPlayerName(leader) .. "'s party")endSee also
Section titled “See also”OnPlayerJoinParty · OnPartyDisband · the Parties group of the index
