Hi, I am trying to learn lua, so I have been playing around with script's I've recorded. I am now tring to combine and offset search with an add to value command, but I can't figure it out.
Would somone please take a look at the two bits of code and, then point me in the right direction so I can figure this out?
I want to combine this:-
data = gg.prompt({'\vHow much cash do you need? \nPlease use numbers only!'},{0})
p = gg.getResults(1)local q ={}
q[1]={}
q[1].address = p[1].address +36--dont forget to ajust memory offset
q[1].flags =4
q[1].value = data[1]
gg.setValues(q)
gg.alert('done')
With this:-
data = gg.prompt({'\vHow much cash do you need? \nPlease use numbers only!'},{0})
p = gg.getResults(1)for i, v in ipairs(p)doif v.flags == gg.TYPE_DWORD then
v.value = v.value + data[1]endend
gg.setValues(p)
p =nil
gg.alert('I added $'..data[1]..' to your account')
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Question
TheGameExploiter
Hi, I am trying to learn lua, so I have been playing around with script's I've recorded. I am now tring to combine and offset search with an add to value command, but I can't figure it out.
Would somone please take a look at the two bits of code and, then point me in the right direction so I can figure this out?
Thanks in advance to anyone that can help me
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.