Skip to content

GetPlayerPartyInvite

The player’s pending invitation.

GetPlayerPartyInvite(pid)
Parameter Type
pid number the player

from, seconds - the inviter and the seconds left; nil without a pending invitation

local from, seconds = GetPlayerPartyInvite(pid)
if from then SendClientMessage(pid, COLOUR_SERVER, GetPlayerName(from) .. "'s invitation runs out in " .. math.floor(seconds) .. " s.") end

InviteToParty · the Parties group of the index