# CS:GO Cheat Library
## Introduction
This is a collection of cheats for the video-game Counter-Strike: Global Offensive.
These cheats were coded as part of a [YouTube series](https://www.youtube.com/watch?v=1y63M4BvG9A&list=PLzBukBmD3GxuBpWT7xV-pCN-Uu7WwtK7O).
## Code Samples
**Gaining access to the CSGO application**
The window is stored ```HWND hwnd = FindWindowA(NULL, "Counter-Strike: Global Offensive");```
The process ID is retrieved ```GetWindowThreadProcessId(hwnd, &procId);```
A handle is is created ```HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, NULL, procId);```
**How to read and write process memory**
How to read process memory: ```RPM(address + offsets);```
Example: ```RPM(0xD30B94 + 0x4);```
How to write process memory: ```WPM(address + offsets, newValue);```
Example: ```int value = 999; WPM(0xD30B94 + 0x4, value);```
## Installation
Update the addresses and offsets. I reccomend using [Hazedumper](https://github.com/frk1/hazedumper) for this.
Set the character set to Multi-Byte.
Build the application as **x86** and run as an administrator.
**Error trouble shooting**
If you are having issues compiling check out the [faq](https://github.com/HeathHowren/CSGO-Cheats/blob/master/faq.md) for common issues I've seen!
## Contributions
* [HeathHowren](https://github.com/HeathHowren)
* [beans42](https://github.com/beans42)