Functions/Player/Server/setRPName

From Official DarkRP Wiki
Jump to navigation Jump to search
Function
Function name Player:setRPName(string name, boolean firstrun)
Description:
Set the RPName of a player.
Returns: nil
Part of Library: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/Player/Server/setRPName]Player:setRPName[/url][/b]

Function parameters

  1. name (string)
  2. The new name of the player.

  3. firstrun (boolean) (optional)
  4. Whether to play nice and find a different name if it has been taken (true) or to refuse the name change when taken (false).


Function return values

This function does not return any value.