Skip to main content

setMoney

setMoney

info

Sets the player's balance for the specified money type.

Use this export in your scripts.

Parameters

  • moneyType - The type of money to set ('cash', 'bank', 'dirty', 'pokerchips').
  • source - The player's server ID.
  • amount - The new balance to assign.

Returns

Returns true if the update was successful, otherwise false.

Usage

exports['FS-Money']:setMoney('bank', source, 1500)