Element Objects
Elements are the toggles and such seen in the gui. Element objects are what is returned when creating an element with the newElement function. They provide functions to edit the values of themselves.
Remove Element
When used on an element object it will destroy the element object and the frame in the menu.
Edit Visibility
When used on an element object it will either hide or show in the menu.
Edit Toggle
When used on an element object with a toggle it will set the toggle's value/state to either true or false.
Edit Dropdown
When used on an element object with a dropdown it will set the dropdown's selected items. (ex): element_example:setSelected({"Yep!", "Hi"}).
Edit Slider
When used on an element object with a slider it will set the value. (Note: this bypasses slider decimal caps.)
Edit Colorpicker
When used on an element object with a colorpicker it will set the color and transparency.
Edit Keybind
When these are used on an element object with a keybind it will set the keybinds method, key and state respectively.
Edit Multibox
When these are used on an element object with a multibox it will add or remove options from its self, respectively.
Edit Textbox
When used on an element object with a textbox it will set the text.
Last updated