اتوقع عبدالكريم وضح لك
--- # Server
addEventHandler("onResourceStart",resourceRoot, function ( )
triggerClientEvent ( root , "SetAccounts" , root , getAccounts ( ) )
end )
-- # Client
addEvent("SetAccounts",true)
addEventHandler("SetAccounts",root, function ( t )
guiGridListClear ( GUIEditor.gridlist[1] )
for i,v in ipairs ( t ) do
local row = guiGridListAddRow ( GUIEditor.gridlist[1] )
guiGridListSetItemText ( GUIEditor.gridlist[1] , row , 1 , v , false , false )
end
end )