LynxMods
  • Overview
  • Using Lua Scripts
    • Using lua scripts
  • DEVELOPERS
    • Writing Lua Scripts
      • Getting Started
      • Examples
        • Basic UI Examples
        • Basic Auto Reply
      • Events
      • API Documentation
        • client
        • ui
Powered by GitBook
On this page

Was this helpful?

  1. DEVELOPERS

Writing Lua Scripts

PreviousUsing lua scriptsNextGetting Started

Last updated 4 years ago

Was this helpful?

To get started with lua scripting, you'll need a suitable text editor. We suggest or , but in theory or even the built-in Microsoft Notepad will probably work just fine. After choosing an editor, head over to

If you're unfamiliar with the Lua programming language, is a great guide to get started.

Things to keep in mind

  • By default, all loaded lua scripts share the same environment. This means that if 2 scripts use a global variable with the same name, they will conflict with each other and cause all kinds of issues. To prevent this, always remember to make your variables, functions, etc local

VS Code
Sublime Text
Notepad++
Lua in 5 minutes