> For the complete documentation index, see [llms.txt](https://hrscripts.gitbook.io/hrscripts-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hrscripts.gitbook.io/hrscripts-documentation/resources/hrlib/modules/iplayer/server.md).

# Server

## GetIPlayer

Function to get IPlayer's values as [HRLibServerIPlayer](/hrscripts-documentation/resources/hrlib/classes/hrlibserveriplayer.md) with player Id

```lua
function HRLib.GetIPlayer(playerId: integer): HRLibServerIPlayer? IPlayer
```

Parameters description

* `playerId` - the player's server Id

Return description

* `IPlayer` - contains [HRLibServerIPlayer](/hrscripts-documentation/resources/hrlib/classes/hrlibserveriplayer.md) for the given player server Id

## AllFPlayers

Function to get IPlayer's values as list of HRLibServerIPlayer for all players in the server

```lua
function HRLib.AllFPlayers(): HRLibServerIPlayer[]? allIPlayers
```

Return description

* `allIPlayers` - contains the list of [HRLibServerIPlayer](/hrscripts-documentation/resources/hrlib/classes/hrlibserveriplayer.md)
