تفضل
function list()
guiGridListClear(playe)
for id, players in ipairs (getElementsByType("player")) do
local row = guiGridListAddRow(playe)
guiGridListSetItemText(playe, row, 1, getPlayerName(players), false, false)
guiGridListSetItemColor ( playe, row, 1, 0, 250, 154, 255 )
end
end
addEventHandler("onClientResourceStart", resourceRoot, list)
addEventHandler("onClientPlayerJoin", getRootElement(), list)
addEventHandler("onClientPlayerQuit", getRootElement(), list)
addEventHandler("onClientPlayerChangeNick", getRootElement(), list)