Hooks/Server/CanChangeRPName

From DarkRP
Jump to navigation Jump to search
Hook
Hook name CanChangeRPName(Player ply, string name)
Description:
Whether a player can change their RP name.
Returns: boolean answer, string reason
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/CanChangeRPName]CanChangeRPName hook[/url][/b]

Parameters[edit]

  1. ply (Player)
  2. The player.

  3. name (string)
  4. The name.

Return values[edit]

  1. answer (boolean)
  2. Whether the player can change their RP names.

  3. reason (string)
  4. When answer is false, this return value is the reason why.