# Function Reference

**URL:** https://heroiclabs.com/docs/nakama/server-framework/lua-runtime/function-reference/
**Summary:** This page lists all functions available within Nakama's Lua runtime, with their respective parameters and corresponding code samples.
**Keywords:** nakama lua api, nakama lua functions, nakama lua function signature, function signatures, nakama lua examples, sql, matchcreate, matchlist, lua, functions, api, httprequest
**Categories:** nakama, function-reference, lua-runtime

---


# Function Reference

The code runtime built into the server includes a module with functions to implement various logic and custom behavior, enabling you to define authoritative code and conditions on input received by clients. Learn more about it in the [Server Framework Basics](../../) documentation.

This page lists all functions available within Nakama and their respective parameters, with corresponding code samples for each.
If you haven't already, see the documentation on using the [server framework](../../lua-runtime/).

{{< note "important" >}}
Writing custom SQL is discouraged in favor of using the built-in features of the Storage Engine. If custom SQL is needed for your use case, please [contact Heroic Labs](mailto:support@heroiclabs.com) before proceeding.
{{< / note >}}

{{< note "error" >}}
The creation of custom tables is strongly discouraged.
{{< / note >}}

{{< runtime namespace="runtime" lang="lua">}}
