[Release] Changed Player Name Tags & Distance Names

Yes yes… I know… there is some stuff out there that already does this. The problem I found with the others is it didnt work with people using steam names.

This script does the following:

  • Distance names (Can change the distance at the top of the script)
  • Change the names to anything you wish. (Default setup: %source_num% | %player_name%)

If you have any questions let me know… It is a client script! Source below.

https://hastebin.com/tihisiteqo.lua
if above does not work try below
https://pastebin.com/xxYAjj9T

Credit:
@aurum - Change color of the name on player ped

5 Likes

For example would this allow me to add [Server Director] infront of select peoples names?

If you add that in yourself, but yes yes you can.

Aight, sorry if I’m being a pain but how would I do that?

It really depends on the system that puts that has that already. If you dont have something you can try looking at the custom chat role thing and implementing it into this.

Yea, that’s what I’d been toying with was that custom chat role thing from a bit back, but I can’t seem to get it appears to be broken as of late.

Thank you :slight_smile: It work perfectly

2 Likes

I think there is something wrong with the link, can you upload it here as a file instead?

Its kinda long… here is the script on pastebin. This should stay…

https://pastebin.com/xxYAjj9T

1 Like

How would you use the name the player uses in FiveM settings?

How to install it?

Thank you

It uses whatever name they connect with.

It’s a client script. All you need to do is create the _resource.lua and the client.lua (then you paste in my code).

Thank you ,

I need to write inside the _resource.lua file ? like this :

resource_manifest_version ‘77731fab-63ca-442c-a67b-abc70f28dfa5’

client_script ‘name.lua’

??

Ps: “name” is the name folder that i made to put the 2 files

if you have a file inside the name folder named named.lua then yes.

Thank’s for your reply . I’m stupid or it doesn’t work…

1st : i made a folder with name : test
2dnd: i create 2 files inside , one is client.lua and second is __resource.lua
3rd : i put the code from this link https://pastebin.com/xxYAjj9T inside client.lua
4th: i put this code inside __resource.lua :

resource_manifest_version ‘77731fab-63ca-442c-a67b-abc70f28dfa5’

client_script ‘name.lua’

5 : in the AutoStartResources: i add : - test

6: clear the cache and start

And nothing …doesn’t work :persevere:

Well if you put that code in client.lua, you should write client_script 'client.lua' :slight_smile:

1 Like

work nice , thank’s for your helps all

The playername they specified in FiveM settings or their Steam name?

Whatever name they join with. Meaning whatever the heck FiveM decides to use.