GetPlayerPartyInvite
The player’s pending invitation.
Syntax
Section titled “Syntax”GetPlayerPartyInvite(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”from, seconds - the inviter and the seconds left; nil without a pending invitation
Example
Section titled “Example”local from, seconds = GetPlayerPartyInvite(pid)if from then SendClientMessage(pid, COLOUR_SERVER, GetPlayerName(from) .. "'s invitation runs out in " .. math.floor(seconds) .. " s.") endSee also
Section titled “See also”InviteToParty · the Parties group of the index
