GUIEditor = {
gridlist = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(821, 343, 219, 410, "VEHICLE", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 1.00)
GUIEditor.gridlist[1] = guiCreateGridList(10, 28, 198, 367, false, GUIEditor.window[1])
guiGridListAddColumn(GUIEditor.gridlist[1], "3.D", 0.9)
for i = 1, 2 do
guiGridListAddRow(GUIEditor.gridlist[1])
end
guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "PO1", false, false)
guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "PO2", false, false)
end
)
addEventHandler ("onClientGUIDoubleClick", root,
function ( )
if ( source == GUIEditor.gridlist[1] ) then
local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] )
if ( row == -1 ) then return end
local text = guiGridListGetItemText ( GUIEditor.gridlist[1], row, col )
if ( text == 'PO1' ) then
outputChatBox('IAM , PO1', source, 255, 0, 0 )
elseif ( text == 'PO2' ) then
outputChatBox('IAM , PO2', source, 255, 0, 0 )
end
end
end
)