getServerMoneyAvailable() Netscript Function

getServerMoneyAvailable(hostname)
RAM cost:

0.1 GB

Arguments:
  • hostname (string) – Hostname of target server.
Returns:

Money available on that server.

Note

Running this function on the home computer will return the player’s money.

Example:

getServerMoneyAvailable("foodnstuff"); // returns: 120000
getServerMoneyAvailable("home"); // returns: 1000