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

# Trigger

Trigger a callback asynchronously (non-blocking). On the **client**, this calls a **server** callback. On the **server**, this calls a **client** callback.

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

## Example

```lua
-- Client: call server callback
LT.Callback.Trigger('getPlayerData', function(result)
    print(result)
end, citizenId)

-- Server: call client callback
LT.Callback.Trigger(source, 'getScreenData', function(result)
    print(result)
end)
```

## Parameters

| Name     | Required    | Description                                       |
| -------- | ----------- | ------------------------------------------------- |
| `source` | Server only | Player server ID                                  |
| `name`   | Yes         | Callback name                                     |
| `cb`     | Yes         | `fun(...: any)` — called with the callback result |
| `...`    | No          | Arguments passed to the callback                  |

## Returns

Nothing.
