Thunder_Bird Cheater
Reputation: 0
Joined: 27 Apr 2018 Posts: 33 Location: pakistan
|
Posted: Wed May 30, 2018 1:42 pm Post subject: How to assign values to an address according to if statmen |
|
|
Hello there,
I am facing a problem in LUA while scripting a mouse tool,
here is the code:
openProcess("gta-vc.exe")
if readBytes("0x7E49C0+0x408", 0) then
writeFloat("0068AE00", 1)
end
if readBytes("0x7E49C0+0x408", 1) then
writeFloat("0068AE00", 0.5)
end
if readBytes("0x7E49C0+0x408", 2) then
writeFloat("0068AE00", 4)
end
where, 0x7E49C0+0x408 is the address of active weapon block and 0068AE00 is the address of Mouse X-axis sens. The problem is that when I
execute it, it do not read for active weapon slot, I want the code to automatically read value from active -slot address and assign it to X-axis address whenever its value change. if it changed to 0 then the given value apply if changes to 3, given value apply and if again change to 0 the give value apply
if its not possible or you guys are not understanding the problem then sozzy.
|
|