# client

### Print

```javascript
client.print(string: message);
```

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

### Clear

```javascript
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

```javascript
 client.sleep(ms);
```

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

### Pointer

```javascript
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

```javascript
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

```javascript
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

```javascript
client.isWindowFocused();
```

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

### Random Int

```javascript
client.getRandomInt(int: min, int: max);
```

Returns an integer using a unique seed from a safe random instance.

### Username

```javascript
var name = client.name();
```

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

### UID

```javascript
var uid = client.uid();
```

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

### HWID

```javascript
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:&#x20;

```javascript
"cpuId - diskId - biosId - videoId";
```

### App data

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

```javascript
var appdata = client.appdata();
```

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

Example:

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