hello guys
i need to show player account name instaead nikname in server or if you can show me a example script that can save player nickname and after login set player nickname to saved nikname
i found this code but this can't change player nickname to account name after login
local counter = 0
local originalName = {}
addEventHandler('onPlayerJoin', root, function()
local name = getPlayerName(source)
originalName[source] = name
setPlayerName(source, "Guest_"..counter)
counter = counter + 1
end)
addEventHandler('onPlayerLogin', root, function()
setPlayerName(source, originalName[source])
end)