Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


how to store values?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Loset
Cheater
Reputation: 0

Joined: 18 Apr 2015
Posts: 34

PostPosted: Tue Apr 21, 2015 5:28 pm    Post subject: how to store values? Reply with quote

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
View user's profile Send private message
Loset
Cheater
Reputation: 0

Joined: 18 Apr 2015
Posts: 34

PostPosted: Wed Apr 22, 2015 9:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25819
Location: The netherlands

PostPosted: Wed Apr 22, 2015 10:00 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Loset
Cheater
Reputation: 0

Joined: 18 Apr 2015
Posts: 34

PostPosted: Wed Apr 22, 2015 10:06 am    Post subject: Reply with quote

so what do I do =/?
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Wed Apr 22, 2015 5:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites