Skip to content

AcceptPartyInvite

Accepts the player’s pending invitation - the mode’s /accept.

The same road as the toast’s accept key: the player joins the inviter’s party (making it when there is none). false without a pending invitation. When the party filled or ended meanwhile the invitation is cancelled instead (OnPartyInviteResponse "cancelled").

AcceptPartyInvite(pid)
Parameter Type
pid number the invited player

boolean - false when nothing was pending

elseif cmd == "accept" then
if not AcceptPartyInvite(pid) then SendClientMessage(pid, COLOUR_RED, "Nobody invited you.") end
return true

DeclinePartyInvite · InviteToParty · the Parties group of the index