> For the complete documentation index, see [llms.txt](https://docs.autowall.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.autowall.fun/documentation/vars.md).

# Vars

## Vars

### <i class="fa-cubes">:cubes:</i> Vars

Function-level reference for every Lua API surface — the actual global tables/objects (`entity`, `events`, `render`, `vector`, `color`, `ui`, `memory`, ...) scripts interact with.

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><i class="fa-window-maximize">:window-maximize:</i></td><td><strong>UI</strong></td><td>Persistent switches, sliders, combos, inputs, color pickers.</td><td></td></tr><tr><td><i class="fa-swatchbook">:swatchbook:</i></td><td><strong>Color</strong></td><td>The color() object and how render.* accepts colors.</td><td></td></tr><tr><td><i class="fa-draw-polygon">:draw-polygon:</i></td><td><strong>Vector</strong></td><td>3D vector math used throughout the other APIs.</td><td></td></tr><tr><td><i class="fa-bezier-curve">:bezier-curve:</i></td><td><strong>Entity</strong></td><td>Players, origins, and per-player props.</td><td></td></tr><tr><td><i class="fa-eye">:eye:</i></td><td><strong>ESP</strong></td><td>Not implemented yet.</td><td></td></tr><tr><td><i class="fa-square-root-variable">:square-root-variable:</i></td><td><strong>Math</strong></td><td>Not implemented yet — Lua's standard math library covers most needs already.</td><td></td></tr><tr><td><i class="fa-webhook">:webhook:</i></td><td><strong>Events</strong></td><td>The update/render loop and error handling.</td><td></td></tr><tr><td><i class="fa-square-web-awesome">:square-web-awesome:</i></td><td><strong>Render</strong></td><td>Text, geometry, and world-to-screen projection.</td><td></td></tr><tr><td><i class="fa-memory">:memory:</i></td><td><strong>Memory</strong></td><td>Low-level read-only raw pointer/offset access.</td><td></td></tr></tbody></table>

{% hint style="warning" %}
This reflects the API as actually implemented in `lua_manager.cpp`, not the full aspirational spec. See the Roadmap for what's missing.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.autowall.fun/documentation/vars.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
