Posts: 440
Threads: 14
Joined: Sep 2009
Reputation:
0
Is this function supposed to change the colour of the player's name tag too?
I'm trying to make a player's marker white while keeping the name tag the same colour but when ever I use this function the name tag also goes white.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
SetPlayerMarkerForPlayer sets what the function suggests - the marker (map blip/icon). SetPlayerColor sets the nametag AND blip.
If you use SetPlayerMarkerForPlayer then SetPlayerColor with two different colors, the blip will be the color of the SetPlayerColor color as it overwrites it.
Posts: 440
Threads: 14
Joined: Sep 2009
Reputation:
0
I'm using the function in a command for testing purposes so SetPlayerColor is not being used afterwards.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Seems you were right, SetPlayerMarkerForPlayer DOES in fact change the nametag colour also. I will add a note on the wiki page. There's no way to get around this apart from disabling nametags and using custom ones using 3D text labels.
Posts: 440
Threads: 14
Joined: Sep 2009
Reputation:
0
I didn't think I was doing anything wrong. Maybe the developers can look into this.
Thanks for your time anyway, appreciated!
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Don't hold your breath. There are major problems that haven't been fixed for years; I doubt this small thing will ever be 'fixed'*.
* No disrespect to Kalcor or any other developers intended.