It looks like the Player.payMoney hook might have changed, you can find the API hooks in the documentation folder.
edit: found this
function var pay(string or Format [optional] description, int money, int... resources)
function bool, string, table<int, string> canPayMoney(int money)