> For the complete documentation index, see [llms.txt](https://zedyn.gitbook.io/squadclient/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://zedyn.gitbook.io/squadclient/methods.md).

# Methods

## [.**getServerInfo()**](#getserverinfo)

Get some info about server.

```typescript
{
    MaxPlayers: number;
    GameMode_s: string;
    MapName_s: string;
    SEARCHKEYWORDS_s: string;
    GameVersion_s: string;
    LICENSEDSERVER_b: boolean;
    PLAYTIME_I: string;
    Flags_I: number;
    MATCHHOPPER_s: string;
    MatchTimeout_d: number;
    SESSIONTEMPLATENAME_s: string;
    Password_b: boolean;
    PlayerCount_I: string;
    NextLayer_s: string;
    ServerName_s: string;
    LicenseId_s: string;
    LicenseSig1_s: string;
    LicenseSig2_s: string;
    LicenseSig3_s: string;
    TagLanguage_s: string;
    TagPlaystyle_s: string;
    TagExperience_s: string;
    TagMapRotation_s: string;
    TagRules_s: string;
    CurrentModLoadedCount_I: string;
    AllModsWhitelisted_b: boolean;
    'ap-east-1_I': string;
    'ap-southeast-2_I': string;
    'eu-north-1_I': string;
    'me-central-1_I': string;
    'eu-central-1_I': string;
    'us-east-1_I': string;
    'eu-west-2_I': string;
    'us-west-1_I': string;
    'ap-southeast-1_I': string;
    Region_s: string;
    TeamOne_s: string;
    TeamTwo_s: string;
    PlayerReserveCount_I: string;
    PublicQueueLimit_I: string;
    PublicQueue_I: string;
    ReservedQueue_I: string;
    BeaconPort_I: string;
}
```

## [.getTeams()](#getteams)

Get team names.

```typescript
{
    teamA: string
    teamB: string
}
```

## [**.getLayers()**](#getlayers)

Get current and next layers.

```typescript
{
    current: string | null;
    next: string | null;
}

```

## [**.getSquads()**](#getsquads)

Get squads and details.

```typescript
{
    squadID: number;
    squadName: string;
    size: number;
    locked: boolean;
    creatorName: string;
    creatorEOSID: string;
    creatorSteamID: string;
    teamID: number;
    teamName: string;
}
```

## [**getPlayers()**](#getplayers)

Get players.

```typescript
{
    playerID: number;
    eosID: string;
    steamID: string;
    name: string;
    teamID: number;
    squadID: number;
    isLeader: boolean;
    role: string;
}
```

## [getCurrentFactions()](#getcurrentfactions)

Get current factions.

```typescript
{   
    teamA: string
    teamB: string
}
```
