Sorry for thread bumping but i found that the problem is here:
addEvent("onClientGetCharacterInfos", true )
addEventHandler("onClientGetCharacterInfos", root,
function(characterID)
local name = tostring(getElementData(peds[characterID], "Nom"))
local argent = tonumber(getElementData(peds[characterID], "Argent"))
setElementData(source, "nomPerso", name)
setElementData(source, "argentPerso", argent)
outputChatBox(name, source, 0, 255, 255, false)
outputChatBox(argent, source, 0, 255, 255, false)
end)
The two outputChatBox send me the good values but when i use outputChatBox but here:
triggerServerEvent("onClientGetCharacterInfos", thePlayer, actualPerso[thePlayer])
outputChatBox("2", 255, 255, 255, false)
nomPerso = getElementData(thePlayer, "nomPerso")
argentPerso = getElementData(thePlayer, "argentPerso")
outputChatBox(nomPerso, 255, 255, 255, false)
outputChatBox(argentPerso, 255, 255, 255, false)
The two outputChatBox send me false.