Manage player balance (Vault) - drupijs/Drupi-JS GitHub Wiki

Quick example on how to use the vault api

//You can also get the Permission and chat functions from vault with
//vault.permission() and vault.chat()

var balance = vault.economy().getBalance(player);
vault.economy().depositPlayer(player, cast.asDouble(15.25))
vault.economy().withdrawPlayer(player, cast.asDouble(10.5))