Skip to main content
Deno 2 is finally here 🎉️
Learn more
method PaymentService.prototype.addPaymentToOutput
Re-export
import { PaymentService } from "https://deno.land/x/sptaki@1.2.0/services/mod.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