function name1 ( )
if ( rowCitySF ) then
local row, col = guiGridListGetSelectedItem ( source )
if ( row and col and row ~= -1 and col ~= -1 ) then
local cityName = guiGridListGetItemText ( source, row, 1 )
if ( cityName == "San Francisco" ) then
guiGridListClear ( grid_groups )
rowGroupsPolice = guiGridListAddRow ( grid_groups )
guiGridListSetItemText ( grid_groups, rowGroupsPolice, columnGroups, "Police", false, false )
end
end
end
end
addEventHandler ( "onClientGUIClick", grid_city, name1, false )