Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gui = {}
- function createShoppingWindow()
- outputChatBox("test")
- local sWidth, sHeight = guiGetScreenSize()
- local Width, Height = 320, 550
- local X = (sWidth/2) - (Width/2)
- local Y = (sHeight/2) - (Height/2)
- gui["_root"] = guiCreateWindow(X, Y, Width, Height, "24/7 Shop", false)
- gui["grid"] = guiCreateGridList(1,1, 318, 500, true, gui["_root"])
- gui["close"] = guiCreateButton(80, 505, 160, 40, "Schliessen", true, gui["_root"])
- guiGridListAddColumn(gui["grid"], "Artikel", 0.5)
- guiGridListAddColumn(gui["grid"], "Preis ($)", 0.5)
- showCursor(true)
- guiSetVisible(gui["_root"], true)
- end
- addEvent("onCall", true)
- addEventHandler("onCall", getRootElement(), createShoppingWindow)
- function btnClose(btn, state)
- if (btn == "left") and (state == "up") then
- guiSetVisible(gui["_root"], false)
- showCursor(false)
- end
- end
- addEventHandler("onClientGUIClick", gui["close"], btnClose, false))
Advertisement
Add Comment
Please, Sign In to add comment