LightbulbHelpSomething wrong with my code ?

Posts 1–8 of 8 · Page 1 of 1
Something wrong with my code ?
Hey guys i' m working on my first dayz hack (if we can call this a hack)
Anyway i'm trying to do a nofatigue, norecoil and nospread (with the breath)


My nograss works great by the way.

So what i did :

Offset for my local player : 0x16FC
Offset for the base : 0x1065DA8

My nograss is working so i assume dat my base is correct.


The 3 others doesn' t work.

I use :
plocal + 0x0C70, 0f for fatigue
plocal + 0x0C74, 1f for fatigueDiff
plocal + 0x0c6c, 0f for breath


Did i do something wrong ?

Thanks for the help mates
Use world instead of plocal, I think.
Quote Originally Posted by TheJamesp55 View Post
Use world instead of plocal, I think.

Hey dude, thx for your reply !

I' ve try with the world but i think i' m doing this wrong, my dayz crash !

What is your world offset ?

Thanks bro'
Do you go 4 bytes into pLocal?

Like this:
Object = Mem.Read<uintptr_t>(pBase + BaseOffsets.LocalPlayer);
Object = Mem.Read<uintptr_t>(Object + 0x4);
Quote Originally Posted by gtaplayer2 View Post
Do you go 4 bytes into pLocal?

Like this:
uintptr_t ftw.
Thank you guys for the helpp but it still doesn' t work.


Here is what i do :

int mylittleplayer = memread(mybase + 0x16FC)
mylittleplayer = memread(mylittleplayer + 0x4)


Then

int norecoil = 0xC8C

and then

writefloatblablabla(mylittleplayer + norecoil, 0f);


Hum i think i' m close but ...
Quote Originally Posted by XToitkimini View Post
Thank you guys for the helpp but it still doesn' t work.


Here is what i do :

int mylittleplayer = memread(mybase + 0x16FC)
mylittleplayer = memread(mylittleplayer + 0x4)


Then

int norecoil = 0xC8C

and then

writefloatblablabla(mylittleplayer + norecoil, 0f);


Hum i think i' m close but ...
Are you reading the World?
You need to dereference from that first.
Quote Originally Posted by Chris View Post

Are you reading the World?
You need to dereference from that first.

Yes my friend,

In my fist line i have

Memory.ReadInt(0x1065DA8)

My no grass is working so i think my world is fine !
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us