Skip to content

UI ​

Here contains all the functions for controlling the UI of Sling.

Functions ​

setEnabled() ​

Enables or disables the backpack interface.

  • Type

    luau
    function sling.setEnabled(enabled: boolean)

isEnabled() ​

Returns whether the backpack interface is currently enabled.

  • Type

    luau
    function sling.isEnabled(): boolean

openInventory() ​

Opens the inventory interface.

  • Type

    luau
    function sling.openInventory()

closeInventory() ​

Closes the inventory interface.

  • Type

    luau
    function sling.closeInventory()

toggleInventory() ​

Toggles the visibility of the inventory interface.

  • Type

    luau
    function sling.toggleInventory()

isInventoryOpen() ​

Returns whether the inventory interface is currently open.

  • Type

    luau
    function sling.isInventoryOpen(): boolean

Released under the MIT License.