thx but still have lag and i have 4000+ account. i use this function but i again have a problem. clan have more member but just view a member.
I want to get members loop clan data only once and members use this clan data tables on client side
--Serverside
function gridlist(clan)
theTable = {}
for index, ac in pairs(getAccounts()) do
local keyclan = getAccountData(ac,"ortakveri")
if keyclan and keyclan == clan then
local nick = getAccountData(ac,"nick")
local accname= getAccountName(ac)
table.insert(theTable, {nick,accname})
triggerClientEvent(source,"gridlist",resourceRoot,theTable,clan)
end
end
end
--Clientside
local clanTable = {}
addEvent("gridlist",true)
addEventHandler("gridlist",root,
function(theTable,clan)
clanTable[clan] = theTable -- i use this table on gridlist
end)