function createPlayerList ()
--عمل جدول اللاعبين
local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true )
--عمل عمود لاسماء اللاعبين
local column = guiGridListAddColumn( playerList, "Player", 0.85 )
if ( column ) then --If the column has been created, fill it with players
for id, player in ipairs(getElementsByType("player")) do --- البحث عن جميع اللاعبين
local row = guiGridListAddRow ( playerList ) -- اضافة سطر جديد
guiGridListSetItemText ( playerList, row, column, getPlayerName ( player ), false, false ) -- وضع اسم اللاعب بالسطر
end
end
end
المصدر
https://wiki.multitheftauto.com/wiki/GuiCreateGridList