I need something to show the cashout amounts since i would like to make a script based on this.
Thanks!
Good question. This really should be exposed better. So when a player cashes out, it only actually says who cashed out and what they cashed out at. So in order to know their original bet, we'll need to look it up.
This can be done like this:
engine.on('cashed_out', function(resp) {
console.log(engine.getEngine().playerInfo[resp.username].bet);
});