Getting started
Getting started with LUA scripting
Get a text editor
Editor | Link |
---|---|
Visual Studio Code | code.visualstudio.com (opens in a new tab) |
Sublime Text | sublimetext.com (opens in a new tab) |
Notepad++ | notepad-plus-plus.org (opens in a new tab) |
Install a plugin for enabling LUA support in your editor
For Visual Studio code you can use EmmyLua (opens in a new tab).
Download our LUA SDK
If you have git installed, the LUA SDK will be automatically downloaded and updated to <lua-folder>/types
.
You can manually download the SDK for your LUA api here (opens in a new tab).
Register your first callback
cheat.on("renderer.draw", function()
print("hello from render callback")
end)
Ues LUA libraries from other developers
-- example
-- loads "extra_math" fron <lua-folder>/lib
local extra_math = require("extra_math")