Permanent Player ID'

im running a esx server, is there a way to make it so when someone joins they get set a permanent id over head/scoreboard .

Probably if you had a script that saved the ID to a database, but I don’t really see the point of that…