DarkRP.Player.SetRPName
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: | |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Player.SetRPName]Player:SetRPName[/url][/b] |
Examples[edit]
Description | Sets the player's RP name to "Mingebag". |
---|---|
Used on | |
Code | function CallMingebag( ply )
ply:setRPName( "Mingebag", false )
end
|
Output | The player's RP name is now "Mingebag" |
Additional Notes[edit]
- 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.