Hooks/Server/onPlayerChangedName

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name onPlayerChangedName(Player ply, string oldName, string newName)
Description:
Called when a player's DarkRP name has been changed.
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onPlayerChangedName]onPlayerChangedName hook[/url][/b]

Parameters

  1. ply (Player)
  2. The player.

  3. oldName (string)
  4. The old name.

  5. newName (string)
  6. The new name.

Return values

This hook does not accept return values. You can still return a value to override the default implementation of this hook.