Part of StarfallEx namespace
๐ External
darkrp.requestMoney(sender, amount, message, callbackSuccess, callbackFailure, receiver)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Request money from a player. This is subject to a burst limit, and a limit of one money request per sender per receiver at a time. Use "darkrp.canMakeMoneyRequest" to check if you can request money that tick for that player.
Parameters
| Name | Type | Description |
|---|---|---|
sender | Player | The player who may or may not send the money. |
amount | number | The amount of money to ask for. |
message? | string | An optional custom message that will be shown in the money request prompt. May not exceed 60 bytes in length. |
callbackSuccess? | function | Optional function to call if request succeeds. Args (string: The request message, player: The money sender, number: The amount) |
callbackFailure? | function | Optional function to call if request fails. Args (string: why it failed) |
receiver? | Player | The player who may or may not receive the money, or the owner of the chip if not specified. Superuser only. |
Returns
No return values documented.
Examples
No examples available.
Used In
No usages found in the codebase.