getMoney

Get the balance of cash or bank accounts

Parameters description

ParameterTypeDescriptionDefault

playerId

integer

target player server Id

----

account

'cash'|'bank'

the account

----

Return:

  • integer?

Example

local playerCashBalance = HRLib.bridge.getMoney(1, 'cash')
print(playerCashBalance)

Last updated