> ## Documentation Index
> Fetch the complete documentation index at: https://docs.awokenlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Exports

> Server-side functions for reading your elevators and reloading them after an outside change.

Awoken Elevators is self-contained and needs nothing wired up to work. These exist for the cases where another resource wants to read what you've built, or has written to the tables itself.

<Warning>
  **Every export is server-side.** Call them from a server script only.
</Warning>

```lua server-side only theme={"dark"}
local elevators = exports.awoken_elevators:GetElevators()
```

| Export              | What it does                                                                                                                                                     |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `GetElevators()`    | Every elevator with its floors, as clients receive it. Each floor has `coords` (where the player lands, with a heading) and `interaction` (where the button is). |
| `GetSettings()`     | The current settings from the in-game panel.                                                                                                                     |
| `ReloadElevators()` | Re-reads the tables and pushes the result to every client.                                                                                                       |

## Reloading after an outside change

Elevators are cached in memory and pushed to clients when they change. If something writes to `awoken_elevators` or `awoken_elevator_floors` outside the creator, call `ReloadElevators()` afterwards so players get it without a restart.

You don't need this for anything done in the creator, which already reloads on save.
