> 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/bridge/client.md).

# Client

## getPlayerData

Function to get the player data

```lua
function HRLib.bridge.getPlayerData(): table playerData
```

Return description

* `playerData` - The player's data information from the current framework

## onPlSpawn

Function to add a callback function to the events' handlers of the different frameworks, supported by the bridge which are being triggered when the player is fully spawned

```lua
function HRLib.bridge.onPlSpawn(cb: function)
```

`cb` - the callback function to add to the events' handlers

## isPlayerLoaded

Function to get status for is the player logged in

```lua
function HRLib.bridge.isPlayerLoaded(): boolean
```

## isPlayerSpawned

Value of type `boolean` which is set to `true` when the player is spawned

<pre class="language-lua"><code class="lang-lua"><strong>---@type boolean
</strong><strong>local isSpawned = HRLib.bridge.isPlayerSpawned
</strong></code></pre>
