Try this:
function info()
local rowindex, columnindex = guiGridListGetSelectedItem ( GridListePlayer )
playername = guiGridListGetItemText ( GridListePlayer, rowindex, 1)
guiSetText ( LabelName, "Name : " .. playername .. " " )
triggerServerEvent("informations",localPlayer,targetsource, playername)
end
addEvent("informations", true)
addEventHandler("informations",root,function(targetsource)
local thePlayer = getPlayerFromName(targetsource)
end)
and may I ask? What is this script for?