Game (functions)/Money: Difference between revisions
From PMDOWiki
Created page with " == GAME:GetPlayerMoney == Gets the amount of money the player currently has on hand. === Returns === The amount of money. == GAME:AddToPlayerMoney(System.Int32) == Adds money to the player's wallet. === Arguments === * <code>toadd</code>: The amount of money to add. == GAME:RemoveFromPlayerMoney(System.Int32) == Removes money from the player's wallet. === Arguments === * <code>toremove</code>: The amount of money to remove. == GAME:GetPlayerMoneyBank =..." |
No edit summary |
||
| Line 1: | Line 1: | ||
== | == GetPlayerMoney == | ||
Returns the amount of money the player currently has on hand. | |||
=== Returns === | === Returns === | ||
| Line 10: | Line 8: | ||
The amount of money. | The amount of money. | ||
== | == AddToPlayerMoney == | ||
Adds money to the player's wallet. {{FuncUsage|nmspace=GAME|nm=AddToPlayerMoney|args=toAdd}} | |||
=== Arguments === | === Arguments === | ||
{| class="wikitable" | |||
{{ArgHeader}} | |||
{{ArgRow | |||
|name=toAdd | |||
|type=Integer | |||
|techt=System.Int32 | |||
|purp=The amount of money to add. | |||
}} | |||
|} | |||
== RemoveFromPlayerMoney == | |||
== | |||
Removes money from the player's wallet. {{FuncUsage|nmspace=GAME|nm=RemoveFromPlayerMoney |args=toRemove}} | |||
=== Arguments === | === Arguments === | ||
{| class="wikitable" | |||
{{ArgHeader}} | |||
{{ArgRow | |||
|name=toRemove | |||
|type=Integer | |||
|techt=System.Int32 | |||
|purp=Removes money from the player's wallet. | |||
}} | |||
|} | |||
== GetPlayerMoneyBank == | |||
== | |||
Returns the amount of money in the player's bank | |||
== AddToPlayerMoneyBank == | |||
Adds money to the player's bank. {{FuncUsage|nmspace=GAME|nm=AddToPlayerMoneyBank|args=toAdd}} | |||
=== Arguments === | === Arguments === | ||
{| class="wikitable" | |||
{{ArgHeader}} | |||
{{ArgRow | |||
|name=toAdd | |||
|type=Integer | |||
|techt=System.Int32 | |||
|purp=The amount of money to add. | |||
}} | |||
|} | |||
== RemoveFromPlayerMoneyBank == | |||
== | |||
Removes money from the player's bank. {{FuncUsage|nmspace=GAME|nm=RemoveFromPlayerMoneyBank|args=toRemove}} | |||
=== Arguments === | === Arguments === | ||
{| class="wikitable" | |||
{{ArgHeader}} | |||
{{ArgRow | |||
|name=toRemove | |||
|type=Integer | |||
|techt=System.Int32 | |||
|purp=The amount of money to remove. | |||
}} | |||
|} | |||
Latest revision as of 23:58, 17 January 2026
GetPlayerMoney
Returns the amount of money the player currently has on hand.
Returns
The amount of money.
AddToPlayerMoney
Adds money to the player's wallet. Argument order is GAME:AddToPlayerMoney(toAdd).
Arguments
| Name | Type | Technical Type | Purpose |
|---|---|---|---|
| toAdd | Integer | System.Int32
|
The amount of money to add. |
RemoveFromPlayerMoney
Removes money from the player's wallet. Argument order is GAME:RemoveFromPlayerMoney(toRemove).
Arguments
| Name | Type | Technical Type | Purpose |
|---|---|---|---|
| toRemove | Integer | System.Int32
|
Removes money from the player's wallet. |
GetPlayerMoneyBank
Returns the amount of money in the player's bank
AddToPlayerMoneyBank
Adds money to the player's bank. Argument order is GAME:AddToPlayerMoneyBank(toAdd).
Arguments
| Name | Type | Technical Type | Purpose |
|---|---|---|---|
| toAdd | Integer | System.Int32
|
The amount of money to add. |
RemoveFromPlayerMoneyBank
Removes money from the player's bank. Argument order is GAME:RemoveFromPlayerMoneyBank(toRemove).
Arguments
| Name | Type | Technical Type | Purpose |
|---|---|---|---|
| toRemove | Integer | System.Int32
|
The amount of money to remove. |
