Skip to main content

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

exports['FS-Lib']:transferMoney('cash', source, target, 50)