mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 05:05:47 +01:00
841 B
841 B
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 player’s 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