Again me and another problem, why when I do not have an address added in the address table, the script does not change the address value? The script finds the address and displays its correct value, but as long as I do not have this address in the address table, the script does not change the value although it works.
{$lua}
------------------------------ ENABLE ------------------------------
[ENABLE]
local function luaThread(thread)
while RunLuaThread do
mod = getAddress('Gam248c.tmp+1ACAC4')
mod = readInteger(mod)
if mod == nil or mod == 0 then return
else
adr = readInteger(mod+0x14)
adr = readInteger(adr +0x10)
adr = getAddress(adr +0xa0-0x4)
if isKeyPressed(104) then
y = getAddress(adr+0x8)
fy = readFloat(y)
xd=writeFloat(fy+50)
print(y)
print(fy)
end
end
sleep(100)
end
thread.terminate()
end
----------------------------------
if syntaxcheck then return end
RunLuaThread = true
createThread(luaThread)
------------------------------ DISABLE ------------------------------
[DISABLE]
if syntaxcheck then return end
RunLuaThread = false
Again me and another problem, why when I do not have an address added in the address table, the script does not change the address value? The script finds the address and displays its correct value, but as long as I do not have this address in the address table, the script does not change the value although it works.
.............................
Hi there, I think the problem that you are reading an address with readInteger (4 Bytes), unstead use readQword (8 Bytes) [Link]
ohh sorry, and you are missing something in this line
Again me and another problem, why when I do not have an address added in the address table, the script does not change the address value? The script finds the address and displays its correct value, but as long as I do not have this address in the address table, the script does not change the value although it works.
{$lua}
------------------------------ ENABLE ------------------------------
[ENABLE]
local function luaThread(thread)
while RunLuaThread do
mod = getAddress('Gam248c.tmp+1ACAC4')
mod = readInteger(mod)
if mod == nil or mod == 0 then return
else
adr = readInteger(mod+0x14)
adr = readInteger(adr +0x10)
adr = getAddress(adr +0xa0-0x4)
if isKeyPressed(104) then
y = getAddress(adr+0x8)
fy = readFloat(y)
xd=writeFloat(fy+50)
print(y)
print(fy)
end
end
sleep(100)
end
thread.terminate()
end
----------------------------------
if syntaxcheck then return end
RunLuaThread = true
createThread(luaThread)
------------------------------ DISABLE ------------------------------
[DISABLE]
if syntaxcheck then return end
RunLuaThread = false
Again me and another problem, why when I do not have an address added in the address table, the script does not change the address value? The script finds the address and displays its correct value, but as long as I do not have this address in the address table, the script does not change the value although it works.
.............................
Hi there, I think the problem that you are reading an address with readInteger (4 Bytes), unstead use readQword (8 Bytes) [Link]
ohh sorry, and you are missing something in this line