Jump to content

Help for gg.prompt searching

Recommended Posts

x= gg.prompt({[2]='Enter Value'}, {[1]='1;3;2;', [2]='22', [3]=',000~', [4]=',999;0::45'})
gg.searchNumber(x[1]x[2]x[3]x[2]x[4], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
found = gg.getResultCount()
gg.alert('We found: '..found)

Hi guys, please help for make it.

Where is my fault?

Final patten for search is:

In every search i just want to change two fisrt number of 22,000~22,999.

in gg.promp line i just wrote [2]= 'Enter Value' b'cuz it's  variable.

I got this error:

Script ended:
Script error: org.luaj.vm2.LuaError: @/sdcard/Notes/tttttt.lua:2
`gg.searchNumber(x[2],x[1], gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)`
bad argument #3 (number): boolean expected, got number


Share this post

Link to post
Share on other sites

val = gg.prompt({'input value'},nil,{'number'})
gg.searchNumber('1;3;2;22,000~22,999;0::70', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber('22,000~22,999', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.editAll(val[1], gg.TYPE_DWORD)

I cant understand your explanation clearly. But,  you can try code above. 


Edited by bukandewa

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By YeetMeister
      So i am making a "Private" script menu for a friend so he gets into hacking too.
      But i dont know how to solve this problem
      I hope you get my Idea xD
      UI = 1 if gg.isVisible(true) then gg.setVisible(false) end CustomFoV = result[4] -- function main() gg.alert("{Press 'OK' to activate Hacks}\nthis hack Contains:\n~NoRecoil\n~Bigger Hitbox\n~FoV") Result = gg.prompt({"No Recoil","Bigger Hitbox", "FoV","Custom FoV(Needed if checked)\nSelect a number between 150 and 360"},nil,{"checkbox", "checkbox","checkbox","number"}) if result[1] then NoRecoil() end if result[2] then BigHitbox() end if result[3] then FoV() end if result[4] == FoV() then CustomFoV end UI =-1 end -- function NoRecoil() end function BigHitbox() end function FoV() end -- function exit() gg.toast("This script is made by \nஜ۩۩ஜ[K/D Destroyer]ஜ۩۩ஜ \nPrivate script made for wifi-iwnl") print("This script is made by \nஜ۩۩ஜ[K/D Destroyer]ஜ۩۩ஜ \nPrivate script made for wifi-iwnl") os.exit() end -- main() while true do if gg.isVisible(true) then gg.setVisible(false) UI = 1 end gg.sleep(100) if UI == 1 then main() end end  
    • By I-Do-Trolling
      So i this code:
      local old = gg.getRanges();
        gg.searchNumber ('360', gg.TYPE_FLOAT)
        v = gg.prompt({i = "[setFov]Select a Number Between 175 and 360"}, {i = "0"})
      if v == nil then
        gg.toast("FoV Unchanged")
        gg.getResults (5)
        gg.editAll(v["i"], gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,
        0, -1)
        print("Changed FoV to:" .. v["i"])
      But i wanna to turn it off 
      Can anyone help me