OnPlayerJoinParty
A player joined a party - the leader too, at the party’s birth.
Every member arrives through here: reason is "create" (the leader, as the party is made), "invite" (an accepted
invitation) or "mode" (AddPlayerToParty).
Syntax
Section titled “Syntax”function OnPlayerJoinParty(party, pid, reason) -- ...end| Parameter | Type | |
|---|---|---|
party |
number | the party |
pid |
number | the member |
reason |
string | "create", "invite" or "mode" |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnPlayerJoinParty(party, pid, reason) SendPartyMessage(party, COLOUR_SERVER, GetPlayerName(pid) .. " joined the party.")endSee also
Section titled “See also”OnPlayerLeaveParty · AddPlayerToParty · the Parties group of the index
