i tried create a window in freeroam, but doesn't working
---------------------------
-- Teszt
---------------------------
local GUIEditor = {
button = {},
window = {},
label = {}
}
wnd.GUIEditor.window[1] = guiCreateWindow(541, 375, 360, 222, "Teszt", false)
guiWindowSetSizable(wnd.GUIEditor.window[1], false)
GUIEditor.button[1] = guiCreateButton(10, 182, 340, 30, "teszt", false, GUIEditor.window[1])
GUIEditor.label[1] = guiCreateLabel(9, 26, 341, 156, "- Teszt", false, GUIEditor.window[1])
guiSetVisible( wnd.GUIEditor.window[1], false )
{'btn', id='gift', window=wnd.GUIEditor.window[1], width=250}
Error: gui.lua:283: attempt to index local 'wnd' (a userdata value)
what wrong?