Functions/DarkRP/Server/retrievePlayerData

From Official DarkRP Wiki
Jump to: navigation, search
Function
Function name DarkRP.retrievePlayerData(Player ply, function callback, function failure)
Description:
Get a player's information from the database.
Returns: nil
Part of Library: DarkRP
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Server/retrievePlayerData]DarkRP.retrievePlayerData[/url][/b]

Function parameters

  1. ply (Player)
  2. The player to get the data for.

  3. callback (function)
  4. The function that receives the information.

  5. failure (function)
  6. The function that is called when the information cannot be retrieved.


Function return values

This function does not return any value.