Jump to content
  • 0

Need help on multiChoice .lua Script


putao

Question

Posted

     Hi! So i was making an gg.multiChoice script for my yt channel but when i click the options the menu just dissapear. 

     it doesn't work yet because i didn't finished it nor it's values, and it still very messy, but i like to test it while i write and now i am not able to test.   

 If anyone can tell me how to fix it would help a lot 😁

lua.lua

Btw if you don't wanna download u can read here -->

 

 

function START()
A = gg.multiChoice({'1️⃣Bot Custom Hack💥','2️⃣Fps Hack💫','3️⃣Animation Hacks🏃','4️⃣Head Custom Hack👨','5️⃣Cooldown Hack🕝','6️⃣Reload Speed Hack🕝','7️⃣Tanky Hack🚛','8️⃣Replace Medal Hack🏅','❎Close Script'},nil,'Subscribe to x×putao×x')
if menu == nil then
else
if A[1] == true then
A1()

end
if A[2] == true then
A2()
end
if A[3] == true then
A3()
end
if A[4] == true then
A4()
end
if A[5] == true then
A5()
end
if A[6] == true then
A6()
end
if A[7] == true then
A7()
end
if A[8] == true then
A8()
end
if A[9] == true then
exit()
end
end
AGYT = -1
end
function A1()
A1a = gg.multiChoice({'🧒Head','🤵Body','🕴️Legs','🔫Weapon','❎Exit'},nil,'Bot Custom Options - x×putao×x Script')
if A1a == nil then
else
if A1a[1] == true then
A1a1() 
end
if A1a[2] == true then
A1a2() 
end
if A1a[3] == true then
A1a3()
end
if A1a[4] == true then
A1a4()
end
if A1a[5] == true then
exit()
end
end
AGYT = -1
end

function A1a1()
gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber('0.000001',gg.TYPE_FLOAT)
gg.getResults(9999)
gg.editAll('-3.4e+38',gg.TYPE_FLOAT)
gg.clearResults()
end
function A1a2()
gg.clearResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber('-3.4e+38',gg.TYPE_FLOAT)
gg.getResults(9999)
gg.editAll('0.000001',gg.TYPE_FLOAT)
gg.clearResults()
end


function A1a3()
end

function A1a4()
end

function A2()
A2a= gg.multiChoice({'✔️Enable','🚫Disable','❎EXIT'},nil,'FPS Options - x×putao×x Script')
gg.alert('⭕FPS Hack Increases Your Game Quality⭕')

if A2a == nil then
else
if A2a[1] == true then
A2a1() 
end
if A2a[2] == true then
A2a2() 
end
if A2a[3] == true then
exit()
end
end
AGYT = -1
end

function A2a1()
gg.cleatResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber('',gg.TYPE_QWORD)
gg.getResults(1)
gg.editAll('',gg.TYPE_QWORD)
gg.clearResults()
end
function A2a2()
gg.cleatResults()
gg.setRanges(gg.REGION_CODE_APP)
gg.searchNumber('',gg.TYPE_QWORD)
gg.getResults(999)
gg.editAll('',gg.TYPE_QWORD)
gg.clearResults()
end
function A3()
A3a = gg.multiChoice({'🏃Walk Anim Fast','🚶Walk Anim Slow','😵Dizzy Anim','😴Sleep Anim','😠Disturbed Anim','😆Celebration Anim','❎EXIT'},nil,'Walk Animation Options - x×putao×x Script')
gg.alert('⭕This is a visual hack that edits your character movement speed⭕')
if A3a == nil then
else
if A3a[1] == true then
A3a1() 
end
if A3a[2] == true then
A3a2() 
end
if A3a[3] == true then
A3a3()
end
if A3a[4] == true then
A3a4()
if A3a[5] == true then
A3a5()
end
if A3a[6] == true then
A3a6()
end
if A3a[7] == true then
exit()
end
end
AGYT = -1
end

function A3a1()
gg.clearResults()
gg.setRanges(gg.region_CODE_APP)
end
function A3a2()
gg.clearResults()
gg.setRanges(gg.region_CODE_APP)
end
function A3a3()
gg.clearResults()
gg.setRanges(gg.region_C_ALLOC)
end
function A3a4()
gg.clearResults()
gg.setRanges(gg.region_C_ALLOC)
end
function A3a5()
gg.clearResults()
gg.setRanges(gg.region_C_ALLOC)
end
function A3a6()
gg.clearResults()
gg.setRanges(gg.region_C_ALLOC)
end
function A4()
A4a = gg.multiChoice({'✔️Enable','🚫Disable','❎EXIT'},nil,'Head Edit Options - x×putao×x Script')

if A4a == nil then
else
if A4a[1] == true then
A4a1() 
end
if A4a[2] == true then
A4a2() 
end
if A4a[3] == true then
exit()
end
end
AGYT = -1
end

function A4a1()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('1;0.1418376416;-0.05751883239;-0.99834442139;-1.62521195412;0.99834442139:50',gg.TYPE_FLOAT)
gg.getResults(500)
gg.editAll('0.2;1.1;-1.3;-2;0.2;0.6;2',gg.TYPE_FLOAT)
gg.clearResults()
gg.alert ('⭕This is Head Custom Hack, Activate it in match so bots heads also get edited⭕')
gg.toast('Head Edit Activated 👽')
end

function A4a2()
gg.clearResults()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('0.2;1.1;-1.3;-2;0.2;0.6;2:50',gg.TYPE_FLOAT)
gg.getResults(500)
gg.editAll('1;0.1418376416;-0.05751883239;-0.99834442139;-1.62521195412;0.99834442139:50',gg.TYPE_FLOAT)
gg.clearResults()
gg.alert('You Disabled Head Custom Hack')
end
function mn5()
ds = gg.multiChoice({'✔️Enable','🚫Disable','❌EXIT'},nil,'Gadget Cooldown Options - x×putao×x Script')
end
if ds == nil then
else
if ds[1] == true then
ds1() 
end
if ds[2] == true then
ds2() 
end
if ds[3] == true then
exit()
end
end
AGYT = -1
end

function ds1()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('1819242339;1853321060',gg.TYPE_DWORD)
gg.getResults()
gg.editAll('-177',gg.TYPE_DWORD)
gg.clearResults()
gg.alert ('Spam use immunity shields, then switch gadget to the one you want')
end

function ds2()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber('-177',gg.TYPE_DWORD)
gg.getResults(99999)
gg.editAll('1819242339;1853321060',gg.TYPE_DWORD)
gg.clearResults()
gg.alert ('You now disabled Cooldown hack')
function mn6()
end
bs = gg.multiChoice({'✔️Enable','🚫Disable','❌EXIT'},nil,'Event Point Hack Options - x×putao×x Script')
gg.alert('⭕Activate this hack inside the event match, then get the pickups⭕')
end
function mn7()
bs = gg.multiChoice({'✔️Enable','🚫Disable','❌EXIT'},nil,'Tanky Hack Options - x×putao×x Script')
gg.alert('⭕Equip zombie biker legs and Activate in Menu for it to work⭕')
end
function mn8()
ps = gg.multiChoice({'🥇Gold Pickup','↗️Xp Booster Pickup','💲Cash Booster Pickup','👺Nian Boss','🦄Unicorn Boss','🚼Marshmallow Boss','⚫Twister Gadget','⚫Ghost Trap Gadget','⚫Trap Medal Gadget','🚫Disable : Gold Pickup','🚫Disable : Xp Booster Pickup','🚫Disable : Cash Booster Pickup','🚫Disable : Nian Boss','🚫Disable : Unicorn Boss','🚫Disable : Marshmallow Boss','🚫Disable : Twister Gadget','🚫Disable : Ghost Trap Gadget','🚫Disable : Mine Gadget','❌EXIT'},nil,'Replace Medal Options')

if ps == nil then
else
if ps[1] == true then
ps1() 
end
if ps[2] == true then
ps2() 
end
if ps[3] == true then
exit()
end
end
AGYT = -1
end
function ps1()
gg.setRanges(gg.REGION_C_ALLOC)
gg.searchNumber(':dogtag_enemy',gg.TYPE_UTF)
gg.getResults(99999)
gg.editAll(':gold_loot',gg.TYPE_UTF)
gg.clearResults()
gg.alert ('You exchanged medals with gold, now go kill enemyes to farm gold.')
end

function exit()
gg.alert ('Enjoy it b****')
os.exit()
end
while true do
if gg.isVisible(true) then
AGYT = 1
gg.setVisible(false)
end
if AGYT == 1 then
START()
end
end

i also know ain't TYPE_UTF but that's old, i'll swap for BYTE

8 answers to this question

Recommended Posts

Posted

yess thnkss it worked, i'll read later to understand, rn i am busy, and i still very noob at scripting, i'll try to learn better thnks

Posted
2 minutes ago, AKidWithMidgetFriend said:

What do you mean? clearResults isn't causing the problem for sure.

There is cleaTresults in code

Posted
12 minutes ago, Ololord said:

There is cleaTresults in code

Ooohhhh function A2a2... Didn't catch that my bad... So I guess I was wrong and it sort of was the problem I thought maybe you were asking about what it does or you were implying that it was preventing the table from displaying... Sorry for the mixup thank you for the keen observation though!

2 minutes ago, MonkeySAN said:

A2a1()

Missed this one too^

Posted

that was the least problem.

Gg will return error when selecting that function and easily solve.

but his original script did run but couldnt call any function even the exit().

i had this kind of problem before so i made some adjustment to the script.

the edited one work for me at least.

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.