addCommandHandler("getAccounts",
function (player, cmd)
local serial = getPlayerSerial(player)
local accounts = getAccountsBySerial(serial)
local myaccs={}
for k ,v in ipairs(accounts)do
table.insert(myaccs,v)
end
triggerClientEvent(player,'setgrid',player,myaccs)
end)
-----------------------------client
addEvent('setgrid',true)
addEventHandler('setgrid',root,function(acc)
for k,v in ipairs(acc)do
local row=guiGridListAddRow(grid)
guiGridListSetItemText(grid,row,1,v,false,false)
end
end)
بالتوفيق