bitburner-src/markdown/bitburner.ns.getservermoneyavailable.md
Olivier Gagnon 43fc5dfd48 work on doc
2021-10-30 12:34:14 -04:00

841 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: Host): number;

Parameters

Parameter Type Description
host Host Host or IP of target server

Returns:

number

Amount of money available on the server.

Remarks

0.1 GB

Example

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