Vault / Economy
vault/withdraw
Withdraw
Withdraws money from a player's economy account.
Note: Use the Has Money node before withdrawing to avoid overdraft.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
exec |
exec | Incoming execution. | |
player |
player | Player to withdraw from. | |
amount |
number | ✓ | Amount to withdraw. |
Outputs
| Name | Type | Description |
|---|---|---|
exec |
exec | Continues after withdrawal. |
success |
boolean | True if the withdrawal succeeded (i.e. player had enough funds). |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
amount |
number | 100 |
Amount |