dbExec( connection, "CREATE TABLE names (column1 TEXT, column2 TEXT)")
dbExec( connection, "INSERT INTO names (column1, column2) VALUES (?,?)", 4, "test2" )
function testing( allnames )
local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true )
local column = guiGridListAddColumn( playerList, "Player", 0.85 )
for k,v in pairs(allnames) do
local row = guiGridListAddRow ( playerList )
guiGridListSetItemText ( playerList, row, column, v["column2"], false, false )
end
end
addEvent("onStart",true)
addEventHandler("onStart",localPlayer,testing)