function togglePM ()
pmEnabled = not pmEnabled
guiSetVisible(pmWindow, pmEnabled)
showCursor(pmEnabled)
guiGridListClear (gridThing)
for i,v in pairs(getElementsByType("player")) do
local row = guiGridListAddRow(gridThing)
guiGridListSetItemText ( gridThing, row, column, getPlayerName( v ), false, false )
end
end
bindKey("F3","up", togglePM)
Working now nvm there were some spelling mistakes LOL