

We know the address of pointer to local player or pLocalPlayer. Lets look at a picture of this to give you a visual of how all that stuff works. Then from there we have offsets to the things we want to access such as ammo. When hacking games we usually have a pointer to local player usually denoted as pLocalPlayer and that address points to local player. To understand why offsets are use full we have to take a look at the bigger picture and how we get to a spot in memory where our offset will be useful. This is extremely simple but many "programmers" who make hacks use offsets but don't understand what it actually is. So an offset is just the number of bytes away from a reference point and in this case that's the start of player. As long as you know the data type you can simply add how many bytes it is away from your reverence point (which is the start of the struct for us also called the start of local player). And the next member is 4 bytes away from that (since health takes 4 bytes because its an int) so it is said to be offset 4 bytes. So health is offset 0 bytes from the start of the struct because it is the start.

The first member in the struct is where the struct starts.

If you know how many bytes each data type is we can do some simple addition. If all of these members are in a struct, they will be allocated in memory right next to each other.

How do we know what the offsets are though? Well think about this for a second. Lets take a look at a very simple structI will provide. To understand how to use offsets and find them we must understand what an offset is so we will look at a simple example. So you might be thinking what is an offset or you might have used an offset to hack a game but not known what it is doing (sad life if so). You should have an understanding of programming (I will be using C++ in the short code examples) or else this will be useless. This tutorial is not designed to target internal or external game hacking specifically but general(and simple) memory concepts. This tutorial is aimed at the very beginner who is just looking to get into hacking but doesn't know the basics of offsets and is having trouble starting off. So I want to make an over kill tutorial to clear any confusions on offsets and a simple way to find them. Many people have trouble finding offsets in games and understanding what an offset is (talking to beginners here not you leet haxors).
