Skip to content

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.

function OnPartyInviteResponse(from, target, answer)
-- ...
end
Parameter Type
from number the inviter
target number the player invited
answer string "accepted", "declined", "timeout" or "cancelled"

nothing

function OnPartyInviteResponse(from, target, answer)
if answer ~= "accepted" then
SendClientMessage(from, COLOUR_SERVER, GetPlayerName(target) .. " " .. answer .. " the invitation.")
end
end

OnPartyInvite · InviteToParty · the Parties group of the index