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 


Noob questions

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
GHnoob31
How do I cheat?
Reputation: 0

Joined: 23 May 2022
Posts: 0
Location: Heidel

PostPosted: Mon May 23, 2022 2:33 pm    Post subject: Noob questions Reply with quote

Hey guys, hope i'm posting in right section.
Got a couple of questions as to how I can freeze values, set hotkeys and also how to change an addresses value type to a float via CELua



I've searched the internet far and wide, and I still cannot figure out how to make hotkeys for freezing values, and just freezing values in general. On top of that, I haven't been successful in changing these addresses value types to float and it's a real pain. I want to avoid using a cheat engine table and hopefully have it working through a script? Can someone give me advice please.


Code:
 
ManualAddy = readFromClipboard()
print(ManualAddy)

Multiplier = 0x6324

MultiplierAddy = (ManualAddy - Multiplier)
Print(MultiplierAddy)


list = getAddressList()
local rec4 = list.createMemoryRecord()
rec4.setAddress(ManualAddy)
rec4.setDescription ("Manual")
writeFloat(ManualAddy,0)

_________________
deez nuts
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Tue May 24, 2022 2:01 am    Post subject: Reply with quote

to change a record to float (single internally) assign vtSignle to the VarType property
Code:

rec4.VarType=vtSingle


to freeze the value do
Code:

rec4.Active=true


to set a hotkey you can do:
Code:

rec4.createHotkey({VK_CONTROL, VK_Q}, mrhToggleActivation)

which creates a CTRL+Q hotkey that toggles freeze on/off

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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