local mainWindowfunction showGUI()if(mainWindow == nil) thenmainWindow = guiCreateWindow(606, 321, 194, 246, \"InfoPickups\", false)guiWindowSetSizable(mainWindow, false)guiSetVisible(mainWindow, true)setElementData(mainWindow, \"buttonCreate\", guiCreateButton(10, 215, 66, 21, \"Create\", false, mainWindow), false)setElementData(mainWindow, \"buttonDelete\", guiCreateButton(86, 215, 98, 21, \"Delete selected\", false, mainWindow), false)local gridlist = guiCreateGridList(9, 29, 175, 176, false, mainWindow)guiGridListAddColumn(gridlist, \"Name\", 0.5)guiGridListAddColumn(gridlist, \"Position (X, Y, Z)\", 0.5)setElementData(mainWindow, \"gridList\", gridlist, false)bindKey(\"1\", \"down\", hideGUI)endendfunction hideGUI()if(not mainWindow == nil) thenguiSetVisible(mainWindow, false)destroyElement(mainWindow)unbindKey(\"1\", \"down\", hideGUI)endendaddCommandHandler(\"infopickups\", showGUI)
local mainWindow = nilfunction showGUI() if(mainWindow == nil) then mainWindow = guiCreateWindow(606, 321, 194, 246, \"InfoPickups\", false) guiWindowSetSizable(mainWindow, false) guiSetVisible(mainWindow, true) setElementData(mainWindow, \"buttonCreate\", guiCreateButton(10, 215, 66, 21, \"Create\", false, mainWindow), false) setElementData(mainWindow, \"buttonDelete\", guiCreateButton(86, 215, 98, 21, \"Delete selected\", false, mainWindow), false) local gridlist = guiCreateGridList(9, 29, 175, 176, false, mainWindow) guiGridListAddColumn(gridlist, \"Name\", 0.5) guiGridListAddColumn(gridlist, \"Position (X, Y, Z)\", 0.5) setElementData(mainWindow, \"gridList\", gridlist, false) bindKey(\"1\", \"down\", hideGUI) endendfunction hideGUI() if mainWindow then destroyElement(mainWindow) unbindKey(\"1\", \"down\", hideGUI) endendaddCommandHandler(\"infopickups\", showGUI)