Skip to main content
The Deno 2 Release Candidate is here
Learn more
method PaymentService.prototype.addPaymentToOutput
import { PaymentService } from "https://deno.land/x/sptaki@1.2.0/services/PaymentService.d.ts";

Remove currency from player stash/inventory and update client object with changes

Parameters

pmcData: IPmcData

Player profile to find and remove currency from

currencyTpl: string

Type of currency to pay

amountToPay: number

money value to pay

sessionID: string

Session id

output object to send to client