533 B
533 B
Lua API: GUI API Overview
GUI creation
You can create a new GUI with:
local gui = LuaGUI.new()
or
local gui = LuaGUI.new(keyID)
where keyID
is the ID of the key to use for closing the GUI along with Esc
key.
Set the size of the gui
gui:set_size(150, 40)
Center the gui on the screen
Note: This depends on a correct size, defined with gui:set_size
.
gui:set_centered(true)
Showing the gui to a client
To show the custom GUI use:
gui:show(client)