> For the complete documentation index, see [llms.txt](https://laot7490.gitbook.io/ltbridge/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://laot7490.gitbook.io/ltbridge/scripting/load-unload/on-player-load.md).

# OnPlayerLoad

Run code when a player finishes loading into the server.

{% hint style="info" %}
**Side:** Client / Server · **Category:** Load & Unload · **API:** `LT.OnPlayerLoad`
{% endhint %}

## Example

```lua
-- Client: fires when local player is loaded (polls IsPlayerLoaded)
LT.OnPlayerLoad(function()
    print('Local player ready')
end)

-- Server: fires when player signals load complete
LT.OnPlayerLoad(function()
    local src = source
    print('Player loaded:', src)
end)
```

## Parameters

| Name | Required | Description                                                    |
| ---- | -------- | -------------------------------------------------------------- |
| `cb` | Yes      | `fun()` — on server, `source` is available inside the callback |
