General > Developers Corner
How to change playernames
Th3_§mp3r0r:
Hi Guys,
Does anybody know how to add a command wich can change the playernames (like ulx setname)?
DarkRP have that function wit "set rpname" and I tried to figure out how to add a similar command to ulx, but I couldn't find out the way it can be done. Is it even possible?
I wrote some addons myself, like a restart function for the server (running game.consolecommand) and a little more stuff. So I'm barely familar with lua and ulx.
But as I said I'm missing a basic command for console or a method/function to even change the names manually, so is there one?
I'm running newest version of ULX,ULib,UClip and have installed a few more like ULXMysqloo, ULX Globalbans, UTime mysql (cause I'm running two servers who shall be synced).
Thanks for your attention,
Th3_3mp3r0r
Neku:
If you know Lua, just go digging into darkrp's code.
Th3_§mp3r0r:
--- Quote from: Th3_§mp3r0r on January 16, 2014, 02:52:56 AM ---DarkRP have that function wit "set rpname" and I tried to figure out how to add a similar command to ulx, but I couldn't find out the way it can be done.
--- End quote ---
Guess what I've tried first
Neku:
You're gonna need to edit things. Can't just copy and paste things over and expect them to work.
MrPresident:
It's not possible to change a players name in garrymod anymore. The only reason it can be done in DarkRP (presumably) is because that gamemode has special ways of displaying a player's name inside of the gamemode locally.
Without the gamemode supporting this, it cannot be done.
Navigation
[0] Message Index
[#] Next page
Go to full version