client

Interact with the product client and some internal variables

Print

client.print(string: message);

SAFELY print to the C# console. You DO have access to "console" but you may break things.

Clear

client.clear();

This will SAFELY clear any C# related console. we DO provide access to Console. but doing Console.Clear yourself will likely crash.

Sleep

 client.sleep(ms);

Use our built in Thread system, this is much better than fiddling around with tick counting.

Pointer

client.formatPtr(IntPtr: ptr);

You can make javascript understand pointers a bit better.. this is not required to store them in a variable though, this just helps with printing and possible debugging.

Load string

client.loadString(string: code);

This allows you to dynamically run code directly from a string at runtime. This is useful for executing/downloaded scripts, on-the-fly code generation, or modular scripting without needing a physical .js file.

List of functions

client.print(getHostTypes());

This will return a list of class's and functions available for you to use. Example output:

entity => abuse.handler.cheats.sdk.entity Method getLocalPlayer

Window focused

client.isWindowFocused();

Returns a boolean based on if CS2 is focused or not.

Username

var name = client.name();

This will return the Database username of the registered user as a string.

UID

var uid = client.uid();

This will return the UID (Unique Identifier) of the registered user as a string.

HWID

var hwid = client.hwid();

This will return the users Hardware Identification as a string, a unique identifier assigned to hardware components on a device. Expected format:

"cpuId - diskId - biosId - videoId";

App data

This will return the CS2 appdata folder location (root location).

var appdata = client.appdata();

This will return something like: C:\Users\username\AppData\Roaming\@buse\cs2.

Example:

var appdata = client.appdata();
var scriptFolder = appdata + "\\scripts";

Last updated

Was this helpful?