Netscript Gang API

Netscript provides the following API for interacting with the game’s Gang mechanic.

The Gang API is not immediately available to the player and must be unlocked later in the game

Warning

This page contains spoilers for the game

The Gang mechanic and the Gang API are unlocked in BitNode-2.

Gang API functions must be accessed through the ‘gang’ namespace

In Netscript 1.0:

gang.getMemberNames();
gang.recruitMember("Fry");

In NetscriptJS (Netscript 2.0):

ns.gang.getMemberNames();
ns.gang.recruitMember("Fry");