sm.jsonGui

Associated object type: JsonGui

Functions:

  • createGui
  • getViewSize

  • sm.jsonGui.createGui(settings?)

    Creates a new gui.

    Parameters:

    TypeNameDescription
    tablesettings?Table with bool settings for: isHud, isInteractive, needsCursor, hidesHotbar, isOverlapped, backgroundAlpha, handleKeySetup, name, layer

    Returns:

    TypeDescription
    JsonGuigui The gui

    sm.jsonGui.getViewSize()

    Client only

    Returns the size of the window in 720 coords.

    Returns:

    TypeDescription
    integer,integerThe view size as width and height.