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 


Help Possible to multiply values with lua?

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

Joined: 23 Apr 2015
Posts: 2

PostPosted: Thu Apr 23, 2015 1:52 am    Post subject: Help Possible to multiply values with lua? Reply with quote

Hello! I made a table for gta 5 and was wondering if there was an easy way I could multiply a value on the list with lua.

I'm trying to multiply my car velocity with a hotkey
Back to top
View user's profile Send private message
alanze
Advanced Cheater
Reputation: 3

Joined: 03 Oct 2012
Posts: 50

PostPosted: Mon Apr 27, 2015 8:17 am    Post subject: Reply with quote

Code:

al = getAddressList()

function setCarProps()
 local cv = al.getMemoryRecordByDescription("Car Velocity")
 local cvval = cv.Value
 cv.Value = cvval * 2  -- set multiply value here
end

Change the description to "Car Velocity" for that address or change it in the script.
Associate "setCarProps()" to a button or hotkey.

    Back to top
    View user's profile Send private message
    UnneededRawr
    How do I cheat?
    Reputation: 0

    Joined: 23 Apr 2015
    Posts: 2

    PostPosted: Wed May 06, 2015 1:07 am    Post subject: Reply with quote

    Thank you so much! It works perfectly.
    Back to top
    View user's profile Send private message
    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