Code: Select all
local stam = process.readPtr(proc, "int", (0x1AAB0000 + 0x5C1B8), {0x68}) -- 0x68, 0x210,0x5C8, 0x0, 0x464
if stam then printf("0x%X\n",stam) else printf("stam not working\n") end
Code: Select all
local stam = process.readPtr(proc, "int", (0x1AAB0000 + 0x5C1B8), {0x68 ,0x210}) -- 0x68, 0x210,0x5C8, 0x0, 0x464
if stam then printf("0x%X\n",stam) else printf("stam not working\n") end
I tried
{0x68,0x210}
{0x68 , 0x210}
{0x68 ,0x210}
{0x68, 0x210}
Just in case for some reason the space was messing with it lol
Doing this works fine.
Code: Select all
local stam = process.readPtr(proc, "int", (0x1AAB0000 + 0x5C1B8), {0x68}) -- 0x68, 0x210,0x5C8, 0x0, 0x464
stam = process.read(proc, "int", stam+0x210)
stam = process.read(proc, "int", stam+0x5C8)
stam = process.read(proc, "int", stam+0x0)
stam = process.read(proc, "float", stam+0x464)
if stam then printf("%d\n",stam) else printf("stam not working\n") end