| View previous topic :: View next topic |
| Author |
Message |
Loset Cheater
Reputation: 0
Joined: 18 Apr 2015 Posts: 34
|
Posted: Tue Apr 21, 2015 5:28 pm Post subject: how to store values? |
|
|
I have teleport and I want to press a key and store does values of x y z
and another key to teleport to the values I have just stored ?
|
|
| Back to top |
|
 |
Loset Cheater
Reputation: 0
Joined: 18 Apr 2015 Posts: 34
|
Posted: Wed Apr 22, 2015 9:58 am Post subject: |
|
|
| Code: | A,B,C = nil,nil,nil
function save()
local Al,Bl,Cl
Al = readFloat('["GTA5.exe+XXXXXX]+30]+50')
Bl = readFloat('["GTA5.exe+XXXXXX+30]+58')
Cl = readFloat('["GTA5.exe+XXXXXX]+30]+54')
if Al==nil or Bl==nil or Cl==nil then return end
A,B,C = Al,Bl,Cl
end
function teleport()
if A==nil or B==nil or C==nil then return end
writeFloat('["GTA5.exe+XXXXXX]+30]+50', A)
writeFloat('["GTA5.exe+XXXXXX]+30]+58', B)
writeFloat('["GTA5.exe+XXXXXX]+30]+54', C)
end
teleportHotkey = createHotkey(teleport,VK_2)
saveHotkey = createHotkey(save,VK_1) |
Found this on the forum.. it executes but when I press 1 or 2 nothing happens =/
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25819 Location: The netherlands
|
Posted: Wed Apr 22, 2015 10:00 am Post subject: |
|
|
if gta5 is a 64 bit game the [...] notation won't work
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Loset Cheater
Reputation: 0
Joined: 18 Apr 2015 Posts: 34
|
Posted: Wed Apr 22, 2015 10:06 am Post subject: |
|
|
| so what do I do =/?
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Wed Apr 22, 2015 5:57 pm Post subject: |
|
|
| Code: | local address = readPointer("GTA5.exe+XXXXXX")
address = readPointer(address + 0x30)
A1 = readFloat(address + 0x50)
B1 = readfloat(address + 0x58)
C1 = readfloat(address + 0x54) |
|
|
| Back to top |
|
 |
|