[Help] How to get Source.identifier Onplayerdrop without any error


#1

please help i get error when i’m try to get the steam name

AddEventHandler(‘playerDropped’, function()
print(source.identifier)
end)

i tried this also

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


#2

any?one help me pls+++++++++++


#3

Why force essential here if you can simply GetPlayerIdentifiers(source)[1]
Don’t add the essential event… -_-
source is a global in playerDropped btw.


#4

i Solved it yesterdayyy hahah… anyway ty very muchh


#5

But can you explain why some function still call the essential event.? instead of only getplayeridentifier


#6

No clue. I don’t use essentialsmode and never will most likely. :wink:


#7

Because the next server update will have sql handle built in?