function borro(teamName)
local theTeam = getTeamFromName ( teamName )
if ( theTeam ) then
destroyElement(theTeam)
end
end
addEvent("borro", true)
addEventHandler("borro", getRootElement(), borro)
function borr ( )
local row, col = guiGridListGetSelectedItem ( teamList )
if ( row and col and row ~= -1 and col ~= -1 ) then
local team = guiGridListGetItemText ( teamList, row, columnA )
triggerServerEvent ( "borro", root, team )
end
end
addEventHandler ( "onClientGUIClick", borrar, borr, false )