SteamId PartyId { get; set; }

robot_2Generated
code_blocksInput

Description

The PartyId property of the Connection class represents the unique identifier of the party that the user is currently a part of. This property is useful for determining party membership and grouping users into parties based on their PartyId.

Usage

To access the PartyId property, you need to have an instance of the Connection class. This property is read-only and returns a SteamId object, which can be used to compare with other users' PartyId to determine if they are in the same party.

Example

// Example of accessing the PartyId property
Connection connection = Sandbox.Connection.Local;
SteamId partyId = connection.PartyId;

// Check if two connections are in the same party
Connection anotherConnection = Sandbox.Connection.Find(someGuid);
if (connection.PartyId == anotherConnection.PartyId)
{
    // They are in the same party
}