transferMoney
transferMoney
info
Transfers money from one player to another.
Use this export in your scripts.
Parameters
moneyType
- The type of money to transfer ('cash'
,'bank'
,'dirty'
,'pokerchips'
).fromSrc
- The sender's player ID.toSrc
- The receiver's player ID.amount
- The amount to transfer.
Returns
Returns true
if the transfer was successful, otherwise false
.
Usage
- Lua
- Javascript
exports['FS-Money']:transferMoney('cash', source, target, 50)
exports['FS-Money'].transferMoney('cash', source, target, 50)