server:
addEventHandler("onPlayerLogin",root,
function(_,account)
setElementData(source,"accountName",getAccountName(account))
end)
client:
function onClientGUIChanged()
local name = guiGetText(source)
for index, player in pairs">pairs(getElementsByType("player")) do
local accountName = getElementData(player,"accountName") or ""
if string.find(accountName:lower(), name:lower()) then
--CODE
end
end
end
addEventHandler("onClientGUIChanged", guiEdit, onClientGUIChanged)