> For the complete documentation index, see [llms.txt](https://horizon-scripts.gitbook.io/horizon-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://horizon-scripts.gitbook.io/horizon-scripts-docs/horizonmdt/public-api.md). Agents can also search and read this documentation through its [MCP server](https://horizon-scripts.gitbook.io/horizon-scripts-docs/~gitbook/mcp).

# Exports and integrations

Use the reference for the execution side you are calling. Examples use the resource name `HorizonMDT`. An export being callable does not authorize the caller or the target player.

## Export references

* [Client exports](https://horizon-scripts.gitbook.io/horizon-scripts-docs/horizonmdt/client-exports.md): local tablet controls and client helpers.
* [Server exports](https://horizon-scripts.gitbook.io/horizon-scripts-docs/horizonmdt/server-exports.md): versioned APIs, dispatch and records, sentence helpers, locations, billing and legacy server integrations.
* [Custom bridges](https://horizon-scripts.gitbook.io/horizon-scripts-docs/horizonmdt/custom-bridges.md): configure a third-party HUD, notification, inventory, billing, identity, or dispatch resource in `bridge/client.lua` or `bridge/server.lua`.
* [Prison sentence exports](https://horizon-scripts.gitbook.io/horizon-scripts-docs/horizonmdt/prison-sentence-exports.md): adjust a sentence stored and managed by HorizonMDT.

## Before calling another resource

1. Start HorizonMDT and its required dependencies before your integration.
2. Call server exports from server code and client exports from client code.
3. Validate the player, action and target in your integration before calling a privileged server export.
4. Follow the documented return contract: `false, reason`, `nil, reason`, a result table and a thrown export error are different outcomes.
5. Do not forward arbitrary NUI callbacks or client-supplied player IDs into privileged server functions.

EMS invoice payment confirmation is a trusted server integration. See [Server exports](https://horizon-scripts.gitbook.io/horizon-scripts-docs/horizonmdt/server-exports.md) and [EMS patients and billing](https://horizon-scripts.gitbook.io/horizon-scripts-docs/horizonmdt/ems-patients-and-billing.md).
