Is it possible to set your name in game anymore? setinfo doesnt seem to work and changing your name via friends list is kinda annoying.
As far as I know, no; the only way to do this is to overwrite player.Name, player.Nick, and player.GetName. I doubt setinfo functionality is ever coming back.
[QUOTE=.\\Shadow};40299028]As far as I know, no; the only way to do this is to overwrite player.Name, player.Nick, and player.GetName. I doubt setinfo functionality is ever coming back.[/QUOTE]
He is right, you can only overwrite player.Name and player.Nick.
If you aren't sure how to do it (which would be strange) then check in DarkRP files.
i've thought about that before (a few times actually) and wouldn't it be something like this
[lua]
hook.Add("PlayerInitialSpawn", "setname", function(ply)
ply.NewName = ply:Nick()
end )
concommand.Add("change_name", function(ply, cmd, args)
ply.NewName = args[1]
end )
[/lua]
Then you would need to change all the hooks to show the player's new name
[QUOTE=zerothefallen;40298921]Is it possible to set your name in game anymore? setinfo doesnt seem to work and changing your name via friends list is kinda annoying.[/QUOTE]
I'm assuming it's your steam name you want to change?
If you just want to change the way someones name appears ingame you could just create a variable to store their name and create your own function to change it. Then instead of drawing their steam name ingame just draw the variable.
It kind of makes sense also, as you might not want to change your steam name just for gmod but you [B]would[/B] want to change your gmod/server name.
No, I meant, as a player in a server, change my name without changing my steam name. Not as a server
It's possible with a module.
Sorry, you need to Log In to post a reply to this thread.