DarkRP.Player.SetRPName

From Official DarkRP Wiki
Jump to: navigation, search
This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions.
Check here for a up-to-date list of functions.
Function
Function name Player:SetRPName(string name, boolean firstRun)
Description:
Set's the player's role-playing name.
Returns: nil
Part of Library: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Player.SetRPName]Player:SetRPName[/url][/b]

Examples

DescriptionSets the player's RP name to "Mingebag".
Used onNewerServer.png
Code
function CallMingebag( ply )
	ply:SetRPName( "Mingebag", false )
end
OutputThe player's RP name is now "Mingebag"


Additional Notes

  • Changing firstRun to true will make sure that when the name is duplicate, it will put a "1" after it instead of saying you can't change your RP name.
  • The role-playing name is saved when set using this command.