DarkRP.Player.RestorePlayerData

From Official DarkRP Wiki
Jump to navigation Jump to 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:RestorePlayerData()
Description:
Retrieves the player's data from the database.
Returns: nil
Part of Library: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Player.RestorePlayerData]Player:RestorePlayerData[/url][/b]

Examples

DescriptionRestores a player's data, used to update the hud.
Used onNewerServer.png
Code
function UpdateHud( ply )
	ply:RestorePlayerData()
end
OutputN/A


Additional Notes

  • If no name set, his/her steam name will become the players role-playing name
  • If the data could not be retrieved from the database, the default starting values are used for your wallet and salary.