Skip to content

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).

function OnPlayerJoinParty(party, pid, reason)
-- ...
end
Parameter Type
party number the party
pid number the member
reason string "create", "invite" or "mode"

nothing

function OnPlayerJoinParty(party, pid, reason)
SendPartyMessage(party, COLOUR_SERVER, GetPlayerName(pid) .. " joined the party.")
end

OnPlayerLeaveParty · AddPlayerToParty · the Parties group of the index