Functions/DarkRP/Server/retrieveSalary

From Official DarkRP Wiki
Jump to: navigation, 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

  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

  1. salary (number)
  2. The salary.