DarkRP.Player.RestorePlayerData
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: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=DarkRP.Player.RestorePlayerData]Player:RestorePlayerData[/url][/b] |
Examples[edit]
Description | Restores a player's data, used to update the hud. |
---|---|
Used on | ![]() |
Code | function UpdateHud( ply )
ply:RestorePlayerData()
end
|
Output | N/A |
Additional Notes[edit]
- 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.