UI
Here contains all the functions for controlling the UI of Sling.
Functions
setEnabled()
Enables or disables the backpack interface.
Type
luaufunction sling.setEnabled(enabled: boolean)
isEnabled()
Returns whether the backpack interface is currently enabled.
Type
luaufunction sling.isEnabled(): boolean
openInventory()
Opens the inventory interface.
Type
luaufunction sling.openInventory()
closeInventory()
Closes the inventory interface.
Type
luaufunction sling.closeInventory()
toggleInventory()
Toggles the visibility of the inventory interface.
Type
luaufunction sling.toggleInventory()
isInventoryOpen()
Returns whether the inventory interface is currently open.
Type
luaufunction sling.isInventoryOpen(): boolean