Witam, mam taki problem poniewa? nie wiem jak doda? obram?wk? do zmiany tablic w gui
kod:
[lua]local marker=createMarker(358.59,163.00,1007.38, "cylinder", 1, 255, 255, 255, 155)
setElementInterior(marker, 3)
local t=createElement("text")
setElementPosition(t,358.59,163.00,1008.38)
setElementInterior(t,3)
setElementData(t,"name","Zmiana tablic rejestracyjnych")
local wm={}
wm.window=guiCreateWindow(0.22, 0.22, 0.59, 0.53, "Zmiana tablic", true)
guiWindowSetSizable(wm.window, false)
guiWindowSetMovable(wm.window, false)
guiSetVisible(wm.window, false)
wm.gridlist=guiCreateGridList(0.03, 0.09, 0.93, 0.72, true, wm.window)
guiGridListAddColumn(wm.gridlist, "ID", 0.2)
guiGridListAddColumn(wm.gridlist, "Nazwa", 0.5)
guiGridListAddColumn(wm.gridlist, "Tablica", 0.2)
wm.edit=guiCreateEdit(0.04, 0.83, 0.27, 0.11, "", true, wm.window)
wm.submit=guiCreateButton(0.35, 0.84, 0.28, 0.11, "Zmie? tablic?(5000 PLN)", true, wm.window)
wm.close=guiCreateButton(0.68, 0.84, 0.28, 0.11, "Zamknij", true, wm.window)
addEventHandler("onClientGUIClick", root, function(btn,state)
if source == wm.submit then
local selectedRow=guiGridListGetSelectedItem(wm.gridlist)
local new_board=guiGetText(wm.edit)
if selectedRow < 0 then return end
local cost=5000
if string.len(new_board) < 1 then
outputChatBox("* Podaj wi?cej znak?w.&qu... |