AddEventHandler(‘playerDropped’, function()
TriggerEvent(‘es:getPlayerFromId’, source, function(user)
–Récupération du SteamID.
local player = user.identifier
print(player.identifier)
end)
end)
I doing on server-side. and i can’t get the source steam name
This is my first time (2019/05)
All version dowload latest (2019/05)
I have same problem. when i use es:getPlayerFromId and result return data table. T^T.
I can’t use this code.( user.indentifier)
It’s error.
i try to call GetPlayerIdentifiers and it has error. Now I can fix it and call GetPlayerIdentifiers from global. But i look value from getPlayerFromId rerult patten is same GetPlayerIdentifiers but i can not get result from loop. why ? sory about my emglish.
TriggerEvent('es:getPlayerFromId', source, function(user)
print(user) -- result 000001B97E5C1FD0
for i,v in ipairs(user) do
print(v) ****** loop no result ****** (i think loop 0 round)
end
print(GetPlayerIdentifiers(source)) -- result 000002BA24CE0C80
for i,v in ipairs(GetPlayerIdentifiers(source)) do
print(v) ****** loop has all identifier result ******
end
end)