Skip to content

Mason Party Events

Parties can have 4 members at most. They can be created with a random or a custom code and joined either with a code or via in-game party invites from friends.

Client to server


createParty

Description: Creates a brand new party on the network.

joinParty

Description: Joins an existing party or creates a new one with a given code.
Parameters:

NAMETYPENOTES
partyKeystringIf a party with the given key does not exist, a brand new one is created with that code

leaveParty

Description: Leaves the party you’re in.

setReady

Description: Sets your ready status to ready. All party members must be ready in order to enter matchmaking.
Parameters:

NAMETYPE
readyboolean

setPartyVersion

Description: Sets the game version of the party. Only the party leader can change this.
Parameters:

NAMETYPENOTES
versionstringe.g. 5.8.9

setPartyRegion

Description: Sets the region of the party. Only the party leader can change this. Using vultr-frankfurt has the same effect as linode-frankfurt, same with vultr-singapore and linode-singapore.
Parameters:

NAMETYPEOPTIONS
regionstringvultr-frankfurt, vultr-miami, vultr-la, vultr-singapore, i3d-oceania, linode-frankfurt, linode-singapore

setPartyGameMode

Description: Sets the game mode of the party. Only the party leader can change this. Setting this to anything other than what’s listed in the options column will put you in the LTM lobby.
Parameters:

NAMETYPEOPTIONS
gameModestringSolo, Duo, Squad, Limited, CrystalClash, Hangout, PrivateZombieDuo, PrivateZombieSquad

setPartyAutoFill

Description: Sets the auto-fill status of the party. Only the party leader can change this. If this option is enabled, the party will be filled with random players once in game.
Parameters:

NAMETYPE
autoFillboolean

setPartyTournamentCode

Description: Sets the tournament code of the party. Only the party leader can change this.
Parameters:

NAMETYPENOTES
codestringA list of all known codes can be found here

restartPartyMatchmaking

Description: Restarts party’s matchmaking. This can be used to enter the party into matchmaking without being the leader.

sendPartyInvite

Description: Sends an invite to your party to a given user.
Parameters:

NAMETYPENOTES
userIdstringDespite user ID being a number, this parameter is a string, but that’s not even the worst part. For some reason it’s a stringified floating-point number! Example: “694202137.0”

Server to client


partyInviteReceived

Description: Is sent once you receive an invite to a party.
Parameters:

NAMETYPE
partyInviteApiPartyInvite

partyData

Description: Is sent once you join a party.
Parameters:

NAMETYPE
partyApiParty

partyPlayerJoined

Description: Is sent once a player joins your party.
Parameters:

NAMETYPE
playerApiPartyPlayer

partyVersionUpdated

Description: Is sent once party version changes.
Parameters:

NAMETYPE
versionstring

partyMetadataUpdated

Description: Is sent once party tournamrnt code is changed.
Parameters:

NAMETYPENOTES
metadatastringStringified ApiPartyMetadata

partyGameModeUpdated

Description: Is sent once party game mode changes.
Parameters:

NAMETYPE
gameModestring

partyJoinServer

Description: Is sent once matchmaking finishes.
Parameters:

NAMETYPE
serverApiServer

partyStateUpdated

Description: Is sent once party state changes. (waiting, matchmaking, ingame)
Parameters:

NAMETYPE
statestring

partyLeft

Description: Is sent once you leave the party.

partyPlayerUpdated

Description: Is sent once one of the party members is updated. (e.g. their ready status changes)
Parameters:

NAMETYPE
playerApiPartyPlayer

partyPlayerLeft

Description: Is sent once a player leaves the party.
Parameters:

NAMETYPE
playerApiPartyPlayer

partyAutofillUpdated

Description: Is sent once party auto-fill status changes.
Parameters:

NAMETYPE
autoFillboolean

partyRegionUpdated

Description: Is sent once party region changes.
Parameters:

NAMETYPE
regionstring