> 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/callback/await.md).

# Await

Await a callback synchronously (yields the current thread). Times out after 15 seconds.

{% hint style="info" %}
**Side:** Client / Server · **Category:** Callback · **API:** `LT.Callback.Await`
{% endhint %}

## Example

```lua
-- Client: await a server callback
local data = LT.Callback.Await('getPlayerData', citizenId)

-- Server: await a client callback
local screen = LT.Callback.Await(source, 'getScreenData')
```

## Parameters

| Name     | Required    | Description                      |
| -------- | ----------- | -------------------------------- |
| `source` | Server only | Player server ID                 |
| `name`   | Yes         | Callback name                    |
| `...`    | No          | Arguments passed to the callback |

## Returns

* `any ...` — callback return values, or rejects on timeout / invalid callback
