Sorry to interrupt, But you can refresh players by adding the refresh to the open panel function, Like this :
function getAllPlayers ( )
for key,player in pairs(getElementsByType("player")) do
local row = guiGridListAddRow(userPanelGrid1)
local row2 = guiGridListAddRow(userPanelGrid2)
guiGridListSetItemText(userPanelGrid1, row, playerCol, getPlayerName(player), false, false)
guiGridListSetItemText(userPanelGrid2, row2, playerCol2, getPlayerName(player), false, false)
end
end
bindKey ( 'F2', 'down', function ( )
for key,player in ipairs ( getElementsByType ( 'player' ) ) do
if guiGetVisible ( yourWindowName ) then
guiSetVisible ( yourWindowName, false )
showCursor ( false )
guiGridListClear ( userPanelGrid1 )
guiGridListClear ( userPanelGrid1 )
else
guiSetVisible ( yourWindowName, true )
showCursor ( true )
getAllPlayers ( )
end
end
end )