Create & Edit
This button will prompt for a filename for your new Lua script. Do not include directory paths or the .lua extension. Once you have entered the filename, the Lua script will be created and opened for editing.
Edit
This button will open the selected Lua script file for editing. The default editor is Notepad, but this can be changed. The freeware Notepad++ is an excellent editor for writing code.
Run
This button will execute the selected Lua script. Any errors will be displayed in the Output area.
ReSync
This button will ensure that all Lua script files are found and listed and the associated Bespoke Events to assign and run them exist. You only need to use this button if you have added, renamed or deleted .lua files outside of the Lua Console. Note that ReSync happens automatically when the Lua Console is first opened.
Delete
This button will delete the selected Lua script file.
Open Directory
This button will open up Windows File Explorer at the directory of the selected Lua script file.
Export
This button will zip up all the Lua script files for the current aircraft into a directory and file of your choosing.
Import
This button will import all Lua script files contained in a zip file for use with the current aircraft.
Default Editor
This button will allow you to choose a default editor for editing Lua files.
Restart
This button will stop and restart the Lua services. This function is useful if Lua has locked up or a script is running continuously. Note that global.lua and global_aircraft.lua will also stop. You will need to restart them manually if necessary.
Help
This button takes you to these Lua help pages.