How can I display the citizen's name in general server interactions?

Hello, I would like to know how I can change so that the name of the character is displayed at all times and not the name of steam, I have basic knowledge of LUA, I have tried to do some things based on scripts that reproduce the citizen’s name but without success any.
Is there a way to modify the scripts so that they show the citizen name and not those of Steam?

Thank you very much in advance

Get there name from server-side. You need to use the function called xPlayer.getName(), if I remember correctly. You can look it up in the documentaion.

1 Like

If you are talking about first and last name, you can use mysql functions on mysql-async such as fetchAll. If you are talking about the steam name, use getName() as @chip said.

No, the getName() function gets both first and last name from the database.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.