the main code is
function kk()
gg.toast('BR WEPON ENHANCE STARTING SOOn')
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("1000.0F;1.4012985e-45F;-1.0F;0.10000000149F;1000.0F;10.0F;1.2~3F;", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.processResume()
gg.refineNumber("1.2~3", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
revert = gg.getResults(5000, nil, nil, nil, nil, nil, nil, nil, nil)
gg.editAll("0.3", gg.TYPE_FLOAT)
---this is not written in main script, but here... the above code maintain fast reload. the below code maintain RECOIL
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber("1,000.0F;10.0F;1.4012985e-45F::9" , gg.TYPE_FLOAT) ---your group search value / or your search number
gg.refineNumber("1000.0", gg.TYPE_FLOAT) ---saving the results count
p = gg.getResultCount() -- saving the results count
q = gg.getResults(p) -- saving the results
for i = 1,p do
local r = {}
r[i] = {}
r[i].address = q[i].address + 452 -- address the offset(ex :- 4) to the refined result
r[i].flags = 16 -- data type in which you want to edit the value at offset (4 = DWORD)
r[i].value = 0 -- enter the edit value to make the hack
gg.setValues(r)
gg.toast('BR WEPON enhance applied')
end
end
i just want this both code in same function. the first one - 'fast reload' works but the second one 'recoil' doesnt works.
i mean - the recoil code searching.. but it doeant edit value to 0 for recoil. if i put the recoil code in different function, then, 'no recoil' works....
why is this happening? how to solve?