From Multi Theft Auto: Wiki
|This event is deprecated. This means that its use is discouraged and that it might not exist in future versions.|
Please use onPlayerChangeNick instead.
This event is triggered when a player changes his nickname.
string oldNick, string newNick
- oldNick: the nickname the player had before.
- newNick: the new nickname of the player.
The source of this event is the player that changed his nick
function nickChangeHandler(oldNick, newNick) outputChatBox(oldNick.." is now known as "..newNick, getRootElement(), 255, 100, 100) -- display the message end addEventHandler("onClientChangeNick", getRootElement(), nickChangeHandler) -- add an event handler