OnPartyLeaderChange
The lead changed hands.
By the mode (SetPartyLeader) or by the leader leaving, when the next member in join order takes over (previous is
then the one who left).
Syntax
Section titled “Syntax”function OnPartyLeaderChange(party, pid, previous) -- ...end| Parameter | Type | |
|---|---|---|
party |
number | the party |
pid |
number | the new leader |
previous |
number | the one before |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnPartyLeaderChange(party, pid, previous) SendPartyMessage(party, COLOUR_SERVER, GetPlayerName(pid) .. " leads the party now.")endSee also
Section titled “See also”SetPartyLeader · GetPartyLeader · the Parties group of the index
