xPlayer.addAccountMoney¶
xPlayer.addAccountMoney(account, money)
This function adds account money.
Arguments¶
Argument | Data Type | Optional | Default Value | Explanation |
---|---|---|---|---|
account | string | No | - | An valid account, a list of valid accounts can be found in the configuration file |
money | number | No | - | Amount of money to add |
xPlayer.addAccountMoney Example¶
local xPlayer = ESX.GetPlayerFromId(playerId)
xPlayer.addAccountMoney('bank', 1000)