Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.darkrp.requestMoney

S๐Ÿท๏ธ Darkrp

Part of StarfallEx namespace

๐Ÿ”— External
darkrp.requestMoney(sender, amount, message, callbackSuccess, callbackFailure, receiver)
View on GitHub|lua/starfall/libs_sh/darkrp2.lua:705
๐Ÿ“‹ 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

NameTypeDescription
senderPlayerThe player who may or may not send the money.
amountnumberThe amount of money to ask for.
message?stringAn optional custom message that will be shown in the money request prompt. May not exceed 60 bytes in length.
callbackSuccess?functionOptional function to call if request succeeds. Args (string: The request message, player: The money sender, number: The amount)
callbackFailure?functionOptional function to call if request fails. Args (string: why it failed)
receiver?PlayerThe 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.