Jump to content
  • 0

Help me


Duy_Khang

Question

hello everyone, i have written a short script but i do not understand why it is constantly forced to close people can help me fix it?

Here is it:

gg.toast('馃憫 Hack By Khang 馃憫')

--Lua Scipt By Khang Nguy峄卬 
while (true) do

    if gg.isVisible(true) then
        menuk = 1
    gg.setVisible(false) 
    end 
-----------------------------
MAIN = 1

function MAIN()
Table = {'馃憫  AutoHeadShot 馃憫','馃憫 Ghots 馃憫','馃憫 Wall hack  馃憫','馃憫 Speed hack 馃憫','馃憫 Magazine 馃憫','馃憫 NoFall Dame 馃憫','馃憫 Eat Cooldown 馃憫','馃憫 Antena 馃憫','馃憫 EXIT 馃憫'}
menu = gg.multiChoice(Table,nil,'馃憫 HACK FREE FIRE 1.17.3 馃憫')
     if menu[1] == true then AutoHeadShot() end
     if menu[2] == true then GS() end
     if menu[3] == true then WallHack() end
     if menu[4] == true then SpeedHack() end 
     if menu[5] == true then Magazine() end 
     if menu[6] == true then NoFall() end
     if menu[7] == true then EatCooldown() end
     if menu[8] == true then Exit() end
     if menu[9] == true then Exit() end
     if menu == nil then Exit() end
menuk =-1
end
--------------------------------------------
function Exit()
print('馃憫 Hack By Khang 馃憫')
os.exit()
end
--------------------------------------------
--------------------------------------------
function AutoHeadShot()

gg.clearResults()
gg.searchNumber('40', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.getResults(100) 
gg.editAll('0', gg.TYPE_FLOAT)
gg.toast('馃憫 Auto HeaShot 馃憫')
end
--------------------------------------------
function Ghots()

Table = {'馃憫 GhotsOn 馃憫','馃憫 GhotsOff 馃憫','馃憫 Exit 馃憫'}
Item3 = gg.choice(Table,nil,'馃憫 Hack By Khang 馃憫')
if Item3 == 1 then GhotsOn() end
if Item3 == 2 then GhotsOff() end
if Item3 == 3 then MAIN() end
if Item3 == nil then Exit() end
end
--------------------------------------------
function GS()

gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber('1000', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.getResults(100)
gg.editAll('200', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.toast('馃憫 Ghost ON 馃憫')
end
--------------------------------------------
function GhotsOff()

gg.setRanges(gg.REGION_CODE_APP)
gg.clearResults()
gg.searchNumber('200', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0, -1)
gg.getResults(100)
gg.editAll('1000', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.toast('馃憫 Ghost OFF 馃憫')
end
--------------------------------------------
--------------------------------------------
function WallHack()
Item = gg.choice({'馃憫 WalkHackOn 馃憫',' 馃憫 WalkHackOff 馃憫','馃憫 EXIT 馃憫'},nil,'馃憫 Hack by khang 馃憫')
if Item == 1 then WallHackOn() end
if Item == 2 then WallHackOff() end
if Item == 3 then MAIN() end
if Item == nil then Exit() end
end
--------------------------------------------
function WallHackOn()

gg.getRanges(gg.REGION_ANONYMOUS)
gg.clearResults()
gg.searchNumber('2.0;3.0;0.1', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber('2.0', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(100)
gg.editAll('-999',gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0,-1)
gg.toast('馃憫 WallHack Up 馃憫')
end
--------------------------------------------
function WallHackOff()

gg.getRanges(gg.REGION_ANONYMOUS)
gg.clearResults()
gg.searchNumber('-999', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(100)
gg.editAll('2.0', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.toast('馃憫 WalkHack Off 馃憫 ')
end
--------------------------------------------
--------------------------------------------
function SpeedHack()

menu = gg.choice({'馃憫Walk馃憫','馃憫Crawl馃憫','馃憫Swim馃憫','馃憫EXIT馃憫'},nil,'馃憫 Hack by Khang 馃憫')
if menu == 1 then WR() end
if menu == 2 then CR() end
if menu == 3 then SW() end
if menu == 4 then MAIN() end
if menu == nil then Exit() end
end
--------------------------------------------
function WR()

gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber('0.8;1.1;1.90;3.25', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber('3.25', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(800)
gg.editAll('3.8', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.toast('馃憫 Walk Speed Up 馃憫')
end
--------------------------------------------
function CR()

gg.clearResults()
gg.searchNumber('0.8;1.1;1.90;3.7', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber('0.8;1.90', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.toast('馃憫 Crouch/Crawl Speed Up 馃憫')
end
--------------------------------------------
function SW()

gg.clearResults()
gg.searchNumber('1.1;1.90', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber('1.1', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.toast('馃憫 Swim Speed Up 馃憫')
end
--------------------------------------------
function Magazine()

gg.setRanges(gg.REGION_CODE_APP)
gg.clearResults()
gg.searchNumber('2.4651874e-32;-3.8686609e25;100', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0,-1)
gg.searchNumber('100', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.getResults(1000)
gg.editAll('10', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.toast('馃憫 Magazine Hack By Khang 馃憫')
end
--------------------------------------------
function NoFall()

gg.setRanges(gg.REGION_CODE_APP)
gg.clearResults()
gg.searchNumber('6-1.833148e27;-1.30799e21;-7.1614595e24;-0.10000000149', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.searchNumber('-0.10000000149', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.getResults(2)
gg.editAll('-100', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.toast('馃憫 NoFall On 馃憫')
end
--------------------------------------------
--------------------------------------------
function EatCooldown()
Table2 = {'馃憫 EatMedkit 馃憫','馃憫 EatReduce 馃憫','馃憫 EXIT 馃憫'}
Item = gg.multiChoice(Table2,nil,' 馃憫 Hack By Khang 馃憫')
if Item[1] == true then EatMedkit() end
if Item[2] == true then EatReduce() end
if Item[3] == true then MAIN() end
if Item == nil then Exit() end
end
--------------------------------------------
function EatMedkit()

gg.setRanges(gg.REGION_ANONYMOUS)
gg.clearResults()
gg.searchNumber('1.0509738e-43;5.6051939e-45;7.0064923e-45;4', gg.TYPE_FLOAT, false, gg.SIGN_EQUAl, 0,-1)
gg.searchNumber('4', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.getResults(1000)
gg.editAll('3',gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.toast('馃憫 Medkit On 馃憫')
end
--------------------------------------------
function EatReduce()

gg.setRanges(gg.REGION_ANONYMOUS)
gg.clearResults()
gg.searchNumber('9.219563e-41;1.1;3', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.searchNumber('3', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.getResults(300)
gg.editAll('0.3', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.toast('馃憫 EatReduce On 馃憫')
end
if menuk == 1 then START() end
end

_______________________________________________
added 4 minutes later
3 minutes ago, Duy_Khang said:

hello everyone, i have written a short script but i do not understand why it is constantly forced to close people can help me fix it?

Here is it:

gg.toast('馃憫 Hack By Khang 馃憫')

--Lua Scipt By Khang Nguy峄卬 
while (true) do

    if gg.isVisible(true) then
        menuk = 1
    gg.setVisible(false) 
    end 
-----------------------------
MAIN = 1

function MAIN()
Table = {'馃憫  AutoHeadShot 馃憫','馃憫 Ghots 馃憫','馃憫 Wall hack  馃憫','馃憫 Speed hack 馃憫','馃憫 Magazine 馃憫','馃憫 NoFall Dame 馃憫','馃憫 Eat Cooldown 馃憫','馃憫 Antena 馃憫','馃憫 EXIT 馃憫'}
menu = gg.multiChoice(Table,nil,'馃憫 HACK FREE FIRE 1.17.3 馃憫')
     if menu[1] == true then AutoHeadShot() end
     if menu[2] == true then GS() end
     if menu[3] == true then WallHack() end
     if menu[4] == true then SpeedHack() end 
     if menu[5] == true then Magazine() end 
     if menu[6] == true then NoFall() end
     if menu[7] == true then EatCooldown() end
     if menu[8] == true then Exit() end
     if menu[9] == true then Exit() end
     if menu == nil then Exit() end
menuk =-1
end
--------------------------------------------
function Exit()
print('馃憫 Hack By Khang 馃憫')
os.exit()
end
--------------------------------------------
--------------------------------------------
function AutoHeadShot()

gg.clearResults()
gg.searchNumber('40', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.getResults(100) 
gg.editAll('0', gg.TYPE_FLOAT)
gg.toast('馃憫 Auto HeaShot 馃憫')
end
--------------------------------------------
function Ghots()

Table = {'馃憫 GhotsOn 馃憫','馃憫 GhotsOff 馃憫','馃憫 Exit 馃憫'}
Item3 = gg.choice(Table,nil,'馃憫 Hack By Khang 馃憫')
if Item3 == 1 then GhotsOn() end
if Item3 == 2 then GhotsOff() end
if Item3 == 3 then MAIN() end
if Item3 == nil then Exit() end
end
--------------------------------------------
function GS()

gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber('1000', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.getResults(100)
gg.editAll('200', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.toast('馃憫 Ghost ON 馃憫')
end
--------------------------------------------
function GhotsOff()

gg.setRanges(gg.REGION_CODE_APP)
gg.clearResults()
gg.searchNumber('200', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0, -1)
gg.getResults(100)
gg.editAll('1000', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.toast('馃憫 Ghost OFF 馃憫')
end
--------------------------------------------
--------------------------------------------
function WallHack()
Item = gg.choice({'馃憫 WalkHackOn 馃憫',' 馃憫 WalkHackOff 馃憫','馃憫 EXIT 馃憫'},nil,'馃憫 Hack by khang 馃憫')
if Item == 1 then WallHackOn() end
if Item == 2 then WallHackOff() end
if Item == 3 then MAIN() end
if Item == nil then Exit() end
end
--------------------------------------------
function WallHackOn()

gg.getRanges(gg.REGION_ANONYMOUS)
gg.clearResults()
gg.searchNumber('2.0;3.0;0.1', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber('2.0', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(100)
gg.editAll('-999',gg.TYPE_FLOAT,false,gg.SIGN_EQUAL,0,-1)
gg.toast('馃憫 WallHack Up 馃憫')
end
--------------------------------------------
function WallHackOff()

gg.getRanges(gg.REGION_ANONYMOUS)
gg.clearResults()
gg.searchNumber('-999', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(100)
gg.editAll('2.0', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.toast('馃憫 WalkHack Off 馃憫 ')
end
--------------------------------------------
--------------------------------------------
function SpeedHack()

menu = gg.choice({'馃憫Walk馃憫','馃憫Crawl馃憫','馃憫Swim馃憫','馃憫EXIT馃憫'},nil,'馃憫 Hack by Khang 馃憫')
if menu == 1 then WR() end
if menu == 2 then CR() end
if menu == 3 then SW() end
if menu == 4 then MAIN() end
if menu == nil then Exit() end
end
--------------------------------------------
function WR()

gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber('0.8;1.1;1.90;3.25', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber('3.25', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.getResults(800)
gg.editAll('3.8', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.toast('馃憫 Walk Speed Up 馃憫')
end
--------------------------------------------
function CR()

gg.clearResults()
gg.searchNumber('0.8;1.1;1.90;3.7', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber('0.8;1.90', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.toast('馃憫 Crouch/Crawl Speed Up 馃憫')
end
--------------------------------------------
function SW()

gg.clearResults()
gg.searchNumber('1.1;1.90', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.searchNumber('1.1', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1)
gg.toast('馃憫 Swim Speed Up 馃憫')
end
--------------------------------------------
function Magazine()

gg.setRanges(gg.REGION_CODE_APP)
gg.clearResults()
gg.searchNumber('2.4651874e-32;-3.8686609e25;100', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0,-1)
gg.searchNumber('100', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.getResults(1000)
gg.editAll('10', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.toast('馃憫 Magazine Hack By Khang 馃憫')
end
--------------------------------------------
function NoFall()

gg.setRanges(gg.REGION_CODE_APP)
gg.clearResults()
gg.searchNumber('6-1.833148e27;-1.30799e21;-7.1614595e24;-0.10000000149', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.searchNumber('-0.10000000149', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.getResults(2)
gg.editAll('-100', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.toast('馃憫 NoFall On 馃憫')
end
--------------------------------------------
--------------------------------------------
function EatCooldown()
Table2 = {'馃憫 EatMedkit 馃憫','馃憫 EatReduce 馃憫','馃憫 EXIT 馃憫'}
Item = gg.multiChoice(Table2,nil,' 馃憫 Hack By Khang 馃憫')
if Item[1] == true then EatMedkit() end
if Item[2] == true then EatReduce() end
if Item[3] == true then MAIN() end
if Item == nil then Exit() end
end
--------------------------------------------
function EatMedkit()

gg.setRanges(gg.REGION_ANONYMOUS)
gg.clearResults()
gg.searchNumber('1.0509738e-43;5.6051939e-45;7.0064923e-45;4', gg.TYPE_FLOAT, false, gg.SIGN_EQUAl, 0,-1)
gg.searchNumber('4', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.getResults(1000)
gg.editAll('3',gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.toast('馃憫 Medkit On 馃憫')
end
--------------------------------------------
function EatReduce()

gg.setRanges(gg.REGION_ANONYMOUS)
gg.clearResults()
gg.searchNumber('9.219563e-41;1.1;3', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.searchNumber('3', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.getResults(300)
gg.editAll('0.3', gg.TYPE_FLOAT, false, gg.SIGN_EQUAL,0,-1)
gg.toast('馃憫 EatReduce On 馃憫')
end
if menuk == 1 then START() end
end

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

27 minutes ago, Enyby said:

Function START not defined.

You must add error text or it is will be hard help you find error.

 

27 minutes ago, Enyby said:

Function START not defined.

You must add error text or it is will be hard help you find error.

Ok thank you

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.