[Help] vRP Blackjack

Can someone explain me how i have to make this [Release] BlackJack
Work on vRP economy?
I allready tryed:

this.Win = function() {
		// Do Something With .bet
                SomeObject.giveMoney(self.bet);
                self.bet = 0;
		self.myTurn = true;
	}
	
	this.Lost = function() {
		// Do Something With .bet
                SomeObject.giveMoney(-self.bet);
                self.bet = 0;
		self.myTurn = true;
	}

even if you lose the money it remains in the wallet

Please do not create new topics for support/questions related to existing resources.

Only ask questions or request support in the original resource topic, or on whatever site/page you got the resource from (for example: create an issue on the GitHub page of the resource that you downloaded).

That way the original resource creator will get a notification and be able to help properly. This also helps to reduce duplicate topics of the same issue, because everything will be inside the original topic, allowing everyone to see all issues and solutions in one place.

Thanks for keeping the forums tidy.
:mascot: