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").
Syntax
Section titled “Syntax”AcceptPartyInvite(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the invited player |
Returns
Section titled “Returns”boolean - false when nothing was pending
Example
Section titled “Example”elseif cmd == "accept" then if not AcceptPartyInvite(pid) then SendClientMessage(pid, COLOUR_RED, "Nobody invited you.") end return trueSee also
Section titled “See also”DeclinePartyInvite · InviteToParty · the Parties group of the index
