Functions/DarkRP/Server/retrieveSalary

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

Function parameters[edit]

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

  3. callback (function)
  4. The function that receives the salary. Deprecated, use the return value.


Function return values[edit]

  1. salary (number)
  2. The salary.