OnPartyInviteResponse
An invitation was answered - or ran out, or fell through.
answer is "accepted" (the join follows at once), "declined", "timeout" ([party] invite_timeout passed) or
"cancelled" - the party filled or ended before the answer, a side disconnected, or the target joined another party.
Syntax
Section titled “Syntax”function OnPartyInviteResponse(from, target, answer) -- ...end| Parameter | Type | |
|---|---|---|
from |
number | the inviter |
target |
number | the player invited |
answer |
string | "accepted", "declined", "timeout" or "cancelled" |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function OnPartyInviteResponse(from, target, answer) if answer ~= "accepted" then SendClientMessage(from, COLOUR_SERVER, GetPlayerName(target) .. " " .. answer .. " the invitation.") endendSee also
Section titled “See also”OnPartyInvite · InviteToParty · the Parties group of the index
