This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/docs/lua/tabs.md
Quentin 89f57a9a4c
Lua: can make new tabs from lua scripts, doc generation for available tabs to use (#1593)
* lua api: add globals.get_uint and globals.set_uint

* lua doc: remove duplicate function check as we can overload so it doesn't make sense

* lua doc gen: add support for parsing the tabs enum

* gui: custom lua tabs don't have a `func` rendering function but can still have elements to draw

* lua doc: update generated doc

* chore: code style

* chore: minor spelling mistake

* chore: code style

* gui_service: add runtime removal of tabs

* refactor: make it so that it's less likely defining tabs and their translation key in a wrong way.

* lua api: ability to add custom tabs to the gui from lua
2023-07-05 00:30:57 +02:00

58 lines
1.4 KiB
Markdown

# Tabs
All the tabs from the menu are listed below, used as parameter for adding gui elements to them.
**Example Usage:**
```lua
missionsTab = gui.get_tab("GUI_TAB_MISSIONS")
missionsTab:add_button("Click me", function ()
log.info("You clicked!")
end)
```
For a complete list of available gui functions, please refer to the tab class documentation and the gui table documentation.
## Tab Count: 42
### `GUI_TAB_SELF`
### `GUI_TAB_WEAPONS`
### `GUI_TAB_TELEPORT`
### `GUI_TAB_MOBILE`
### `GUI_TAB_OUTFIT_EDITOR`
### `GUI_TAB_OUTFIT_SLOTS`
### `GUI_TAB_VEHICLE`
### `GUI_TAB_HANDLING`
### `GUI_TAB_HANDLING_SEARCH`
### `GUI_TAB_HANDLING_SAVED_PROFILE`
### `GUI_TAB_HANDLING_MY_PROFILES`
### `GUI_TAB_HANDLING_CURRENT_PROFILE`
### `GUI_TAB_LSC`
### `GUI_TAB_SPAWN_VEHICLE`
### `GUI_TAB_FUN_VEHICLE`
### `GUI_TAB_WORLD`
### `GUI_TAB_SPAWN_PED`
### `GUI_TAB_SQUAD_SPAWNER`
### `GUI_TAB_CREATOR`
### `GUI_TAB_TRAIN`
### `GUI_TAB_BLACKHOLE`
### `GUI_TAB_MODEL_SWAPPER`
### `GUI_TAB_NETWORK`
### `GUI_TAB_MISSIONS`
### `GUI_TAB_SPOOFING`
### `GUI_TAB_PLAYER_DATABASE`
### `GUI_TAB_SESSION_BROWSER`
### `GUI_TAB_STAT_EDITOR`
### `GUI_TAB_SETTINGS`
### `GUI_TAB_LUA_SCRIPTS`
### `GUI_TAB_CONTEXT_MENU_SETTINGS`
### `GUI_TAB_ESP_SETTINGS`
### `GUI_TAB_GTA_CACHE_SETTINGS`
### `GUI_TAB_GUI_SETTINGS`
### `GUI_TAB_HOTKEY_SETTINGS`
### `GUI_TAB_REACTION_SETTINGS`
### `GUI_TAB_PROTECTION_SETTINGS`
### `GUI_TAB_TRANSLATION_SETTINGS`
### `GUI_TAB_DEBUG`
### `GUI_TAB_PLAYER`