DarkRP.Player.AddMoney
From GMod Wiki
Revision as of 12:19, 16 November 2011 by [RV] TJjokerR (Talk | contribs)
This page has been nominated for deletion. Deletion is due within approximately 30 days from nomination, unless the deletion has been disputed on the talk page. See more pages nominated for deletion here. Reason for deletion: Not what Garry wants the wiki to be used for Last Edit was made on 11/16/2011 |
Gamemode Function: DarkRP.Player.AddMoney | |
---|---|
DarkRP.Player.AddMoney is a function that is defined in the DarkRP Gamemode and its derivatives. |
Function | |
Syntax |
Player:AddMoney( Integer amount ) Where is this used? |
Description: | |
Adds a certain amount of money to the players supply | |
Returns: | nil |
Part of Library: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DarkRP.Player.AddMoney]DarkRP.Player.AddMoney [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Add some cash to the players balance |
---|---|
Used on | |
Code | function AddSomeCash( ply ) ply:AddMoney(100) end |
Output | N/A |
Description | Take away some cash from the players balance |
---|---|
Used on | |
Code | function TakeCash( ply, amount ) ply:AddMoney(-amount) end |
Output | N/A |
Additional Notes
- The function is serverside. The changes will automatically be sent to the client.