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

32 lines
950 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [NS](./bitburner.ns.md) &gt; [getScriptRam](./bitburner.ns.getscriptram.md)
## NS.getScriptRam() method
Returns the amount of RAM required to run the specified script on the target server. Returns 0 if the script does not exist.
<b>Signature:</b>
```typescript
getScriptRam(script: string, host?: string): number;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| script | string | Filename of script. This is case-sensitive. |
| host | string | Host or IP of target server the script is located on. This is optional, If it is not specified then the function will se the current server as the target server. |
<b>Returns:</b>
number
Amount of RAM required to run the specified script on the target server, and 0 if the script does not exist.
## Remarks
RAM cost: 0.1 GB