Title
Create new category
Edit page index title
Edit category
Edit link
Menu
The way you interact with Orbit's menu is a little bit different from other cheats. You cannot just create a checkbox by itself.
You need to reserve space in memory for the menu element beforehand, so it won't cause any bugs. This avoids reallocation, improves performance, and makes sure the pointers are stable throughout the lifetime of the script. This function is deprecated as of Orbit V9.5.8, menu element creation is handled by Orbit automatically.
You also cannot create a menu element twice with the same name. If you do, they'll be treated as the same element, which will cause more bugs to occur.
On top of that, since Orbit V5.9.5 luas must be separated into their own tab. This is done by getting the name of each lua file and formatting it, which Orbit does for you. Due to a sol limitation, the file name must be returned from the script itself.
Menu element creation
Its true that in lua, tables start with an index of 1. However, in c++ they start from 0. Therefore, if you want the default value of a dropdown to be the first element, you'll have to pass 0 as the last argument.
"CreateText" lets you organize the lua tab to your needs. You can skip rows with empty text elements if you wanted to, better label features etc.
"CreateKeyBind" creates a keybind menu element. If you specify 0 as the default value, it will be empty. Pressing 'ESC' will also reset the keybind's value. The keybind's value is a VK Keycode. Read more about it in the "Input" tab.
Menu element retrieval
If you are confused by what this is, just note that it returns the current index of the table of possible elements. This is done in the c++ code, not in lua, therefore the first index is 0 here.
"GetKeyBind" returns whether or not a keybind's value is pressed or not.