addEventHandler('onClientGUIClick',root,function()
if source==btn then ----------btn بدله باسم الزر
local allplayers=getElementesByType('player')
for k,v in ipairs(allplayers)do
triggerServerEvent('showchatdata',localPlayer,v)
end
end
end)
------server
addEvent('showchatdata',true)
addEvent('showchatdata',root,function(player)
if isElement(player) then
local data=getElementData(player,'dataname')
local acc=getPlayerAccount(player)
if not isGuestAccount(acc) then
outputChatBox('the player name ['..getAccountName(plr)..'] and he is data '..data..' .',root,255,255,255,true)
else
outputChatBox('the player name [not logged in] and he is data '..data..' .',root,255,255,255,true)
end
end
end)
في العاده ما اعطي اكواد جاهزه لكني شفت لك محاوله اخرى في
موضوع اخر
بالتوفيق جرب ورد خبر