Difference between revisions of "Functions/DarkRP/Server/storeMoney"

From Official DarkRP Wiki
Jump to navigation Jump to search
(Wikibot updated DarkRP documentation)
 
m (Wikibot updated DarkRP documentation)
 
Line 6: Line 6:
 
arguments = {{Type|Player}} ply, {{Type|number}} amount |
 
arguments = {{Type|Player}} ply, {{Type|number}} amount |
 
description = Internal function. Store a player's money in the database. Do not call this if you just want to set someone's money, the player will not see the change! |
 
description = Internal function. Store a player's money in the database. Do not call this if you just want to set someone's money, the player will not see the change! |
 +
deprecated =  |
 
returns = {{Type|nil}} |
 
returns = {{Type|nil}} |
 
library = {{Type|DarkRP}} |
 
library = {{Type|DarkRP}} |

Latest revision as of 14:19, 31 October 2015

Function
Function name DarkRP.storeMoney(Player ply, number amount)
Description:
Internal function. Store a player's money in the database. Do not call this if you just want to set someone's money, the player will not see the change!
Returns: nil
Part of Library: DarkRP
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Functions/DarkRP/Server/storeMoney]DarkRP.storeMoney[/url][/b]

Function parameters

  1. ply (Player)
  2. The player.

  3. amount (number)
  4. The new contents of the player's wallet.


Function return values

This function does not return any value.