# Client

### GetPing

`MTools.Client.GetPing();`

| Name | Type | Description |
| ---- | ---- | ----------- |
| -    | -    | -           |

**Allows you to get your Ping.**\
\ <mark style="color:green;">**Example usage:**</mark>

```lua
print(MTools.Client.GetPing());
-- Returns your Ping.
```

### GetFPS

`MTools.Client.GetFPS(normalize);`

| Name      | Type      | Description                                                |
| --------- | --------- | ---------------------------------------------------------- |
| normalize | `boolean` | Automatic value balancing. \[Can have a bad effect on FPS] |

**Allows you to get your FPS.**\
\ <mark style="color:green;">**Example usage:**</mark>

```lua
print(MTools.Client.GetFPS());
-- Each call will return a closer value.
print(MTools.Client.GetFPS(true));
-- It will bring back the real meaning right away.
```

### GetDAT

`MTools.Client.GetDAT();`

| Name | Type | Description |
| ---- | ---- | ----------- |
| -    | -    | -           |

**Allows you to get your Time and Date.**\
\ <mark style="color:red;">**What this function returns:**</mark>

| Name    | Description                 |
| ------- | --------------------------- |
| seconds | Seconds in 00 format.       |
| minutes | Minutes in 00 format.       |
| hours   | The clock is in 00 format.  |
| day     | Day in the 00 format.       |
| month   | Month in 00 format.         |
| year    | The year is in 0000 format. |

<mark style="color:green;">**Example usage:**</mark>

```lua
local DAT = MTools.Client.GetDAT();
print(
    " " .. DAT.hours .. ":" .. DAT.minutes .. ":" .. DAT.seconds ..
    " " .. DAT.day .. "." .. DAT.month .. "." .. DAT.year
);
-- Returns Hours, Minutes, Seconds, Day, Month, Year.
-- 00:00:00 00.00.0000
```

### GetHZ

`MTools.Client.GetHZ();`

| Name | Type | Description |
| ---- | ---- | ----------- |
| -    | -    | -           |

**Allows you to get the refresh rate of the monitor.**\
\ <mark style="color:green;">**Example usage:**</mark>

```lua
print(MTools.Client.GetHZ());
-- Returns the monitor's clock speed. In my case it is 60.
```

### GetAvatar

`MTools.Client.GetAvatar(size, link, texture);`

| Name    | Type      | Description                                               |
| ------- | --------- | --------------------------------------------------------- |
| size    | `number`  | Avatar size. Optional. 1 - Icon, 2 - Medium, 3 - Full.    |
| link    | `boolean` | Get link instead the texture.                             |
| texture | `vector`  | The size of the returned texture. Default vector(16, 16). |

**Allows you to get the user's steem avatar. \[WORKS IN THE MAIN MENU]**\
\ <mark style="color:green;">**Example usage:**</mark>

```lua
local Gets = {
    Link = MTools.Client.GetAvatar(2, true),
    Texture = MTools.Client.GetAvatar(3, false, vector(128, 128))
};

print(Gets.Link);
-- Returns a link to the user's avatar.

events.render:set(function ()
    render.texture(Gets.Texture, vector(500, 500), color(255, 255, 255, 255));
end);
-- Draws the user's avatar at 128x128 on 500x500 coordinates.
```

### GetChokeTick

`MTools.Client:GetChokeTick(number);`

| Name   | Type     | Description            |
| ------ | -------- | ---------------------- |
| number | `number` | How many ticks maximum |

**Allows you to get normal ticks (can be used for the new jitter mode way). \[DOES NOT WORK IN MAIN MENU]**\
\ <mark style="color:green;">**Example usage:**</mark>

```lua
print(MTools.Client:GetChokeTick(5));
-- Sends tics.
```
