xPlayer.addAccountMoney

1
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 Exemplo

1
2
    local xPlayer = ESX.GetPlayerFromId(playerId)
    xPlayer.addAccountMoney('bank', 1000)