GUIEditor = {
gridlist = {},
window = {},
button = {},
label = {},
Table = {
{1, 'A'},
{2, 'b'},
{3, 'c'},
{4, 'd'}
}
}
addEventHandler("onClientResourceStart", getResourceRootElement(),
function()
GUIEditor.window[1] = guiCreateWindow(327, 164, 216, 308, "window", false)
guiWindowSetSizable(GUIEditor.window[1], false)
GUIEditor.gridlist[1] = guiCreateGridList(9, 73, 197, 183, false, GUIEditor.window[1])
local Column = guiGridListAddColumn(GUIEditor.gridlist[1], "id", 0.4)
local Column2 = guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.4)
guiSetVisible(GUIEditor.window[1], true)
for k,v in ipairs( Table ) do
local Row = guiGridListAddRow(GUIEditor.gridlist[1])
guiGridListSetItemText( GUIEditor.gridlist[1],Row,Column, v[1], false, false )
guiGridListSetItemText( GUIEditor.gridlist[1],Row,Column2, v[2], false, false )
end
end
)