SteamHex in scoreboard

Hello. I apologize in advance for my English, I am from Poland. I would like to know what is the steamhex function in the scoreboard instead of the usual username (GetPlayerName(i)). Thank you in advance for your help

1 Like

Probably have to let the server send it to the client then display it on the scoreboard

Do you have any idea how to do it?

As @TheIndra said. You need to fetch the user steamHex: https://docs.fivem.net/scripting-reference/runtimes/lua/functions/GetPlayerIdentifiers/, which if my memory is ok, should return an array, and one index contains the steamHex.
Then you need to send back to the user TriggerClientEvent() to all client (with -1) to sync the new incoming user.
Then you have all steamHex, and you can display them.

1 Like

Okay, so I know how it’s supposed to work. My experience in lua is 2 months, so not many. Could you ask for more pointers?

Do you already have any code?

No, I do not really know what to do, just a clean scoreboard with common nicks,

to see steam and license of players even kick or send a message use txadmin. you can even start restart change your server.cfg start and stop a resource etc…