مثال يجيب كل الاعبين بقروب ارمي
addEventHandler("onClientResourceStart", resourceRoot,
function()
grid = guiCreateGridList(215, 168, 345, 342, false)
guiGridListAddColumn(grid, "Player", 0.5)
guiSetAlpha(grid, 0.72)
end
)
addEventHandler("onClientRender", root,
function()
guiGridListClear(grid)
for k,v in ipairs (getElementsByType("player")) do
if getElementData(v,"Group") == 'ARMY' then
row = guiGridListAddRow(grid)
guiGridListSetItemText(grid, row, 1, getPlayerName(v), false, false)
end
end
end
)