transferMoney
transferMoney
Transfers money from one player to another.
Parameters
moneyType
- The type of money to transfer ('cash'
,'bank'
,'dirty'
).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-Lib']:transferMoney('cash', source, target, 50)
exports['FS-Lib'].transferMoney('cash', source, target, 50)