bitburner-src/markdown/bitburner.ns.getservermoneyavailable.md
Olivier Gagnon feb0430aff work on doc
2021-10-30 15:46:34 -04:00

832 B
Raw Blame History

Home > bitburner > NS > getServerMoneyAvailable

NS.getServerMoneyAvailable() method

Returns the amount of money available on a server. Running this function on the home computer will return the players money.

Signature:

getServerMoneyAvailable(host: string): number;

Parameters

Parameter Type Description
host string Host or IP of target server

Returns:

number

Amount of money available on the server.

Remarks

RAM cost: 0.1 GB

Example

getServerMoneyAvailable("foodnstuff");
getServerMoneyAvailable("home"); //Returns player's money