Functions/DarkRP/Server/retrieveSalary

From Official DarkRP Wiki
Revision as of 14:41, 24 January 2016 by DarkRPBot (talk | contribs) (Wikibot updated DarkRP documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

  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.