Skip to content

five-on-it / packages/sim/src/cash / spendCash

Function: spendCash() ​

spendCash(sim, client, dollars): boolean

Defined in: packages/sim/src/cash.ts:38

Charges a player a price, when they have it all; returns whether it was paid.

Parameters ​

sim ​

SimWorld

client ​

number

dollars ​

number

Returns ​

boolean