sm.jsonGui
Server + Client
createGui
sm.jsonGui.createGui( settings )
Creates a new gui.
Parameters:
| Name | Type | Description |
|---|---|---|
settings (optional) |
table | Table with bool settings for: isHud, isInteractive, needsCursor, hidesHotbar, isOverlapped, backgroundAlpha, handleKeySetup, name, layer |
Returns:
| Name | Type | Description |
|---|---|---|
gui |
JsonGui | The gui |
Client-only
getViewSize
sm.jsonGui.getViewSize( )
Returns the size of the window in 720 coords.
Returns:
| Type | Description |
|---|---|
| integer integer |
The view size as width and height. |