Jump to content
  • 0

How do you add a input prompt with menu choice


Question

Posted

I have been trying to add input prompt with menu choice but it does not work if you know how to make it work pls tell me what im doing wrong  

pog (1).lua

10 answers to this question

Recommended Posts

  • 0
Posted
function main()
menu = gg.choice({'NEW: performance','NEW: Technique','NEW: Visual','EXIT'},nil,'Select Cheat')
if menu == 1 then performance() end
if menu == 2 then Technique() end
if menu == 3 then Visual() end
if menu == 4 then os.exit() end
if menu == nil then noselect() end
end

function performance()
input=gg.prompt({'Input your value below'},
	{[1]='0'},
	{[1]='number'})
	if input==nil then
	gg.alert('You have cancelled the dialogue')
	os.exit()
	end
gg.searchNumber(input[1],gg.TYPE_DWORD)
gg.getResults(100)
gg.editAll('9482',gg.TYPE_DWORD)
end

function Technique()
input=gg.prompt({'Input your value below'},
	{[1]='0'},
	{[1]='number'})
	if input==nil then
	gg.alert('You have cancelled the dialogue')
	os.exit()
	end
gg.searchNumber(input[1],gg.TYPE_DWORD)
gg.getResults(100)
gg.editAll('9482',gg.TYPE_DWORD)
end

function Visual()
input=gg.prompt({'Input your value below'},
	{[1]='0'},
	{[1]='number'})
	if input==nil then
	gg.alert('You have cancelled the dialogue')
	os.exit()
	end
gg.searchNumber(input[1],gg.TYPE_DWORD)
gg.getResults(100)
gg.editAll('9482',gg.TYPE_DWORD)
end

function noselect()
gg.toast('You Not Select Anything')
os.exit()
end

while true do
if gg.isVisible(true) then
main()
end
end

 

  • 0
Posted
7 hours ago, zam535582 said:

function main()
menu = gg.choice({'NEW: performance','NEW: Technique','NEW: Visual','EXIT'},nil,'Select Cheat')
if menu == 1 then performance() end
if menu == 2 then Technique() end
if menu == 3 then Visual() end
if menu == 4 then os.exit() end
if menu == nil then noselect() end
end

function performance()
input=gg.prompt({'Input your value below'},
	{[1]='0'},
	{[1]='number'})
	if input==nil then
	gg.alert('You have cancelled the dialogue')
	os.exit()
	end
gg.searchNumber(input[1],gg.TYPE_DWORD)
gg.getResults(100)
gg.editAll('9482',gg.TYPE_DWORD)
end

function Technique()
input=gg.prompt({'Input your value below'},
	{[1]='0'},
	{[1]='number'})
	if input==nil then
	gg.alert('You have cancelled the dialogue')
	os.exit()
	end
gg.searchNumber(input[1],gg.TYPE_DWORD)
gg.getResults(100)
gg.editAll('9482',gg.TYPE_DWORD)
end

function Visual()
input=gg.prompt({'Input your value below'},
	{[1]='0'},
	{[1]='number'})
	if input==nil then
	gg.alert('You have cancelled the dialogue')
	os.exit()
	end
gg.searchNumber(input[1],gg.TYPE_DWORD)
gg.getResults(100)
gg.editAll('9482',gg.TYPE_DWORD)
end

function noselect()
gg.toast('You Not Select Anything')
os.exit()
end

while true do
if gg.isVisible(true) then
main()
end
end

 

thank you so much 🙂 

  • 0
Posted (edited)
On 1/27/2020 at 9:57 PM, zam535582 said:

function main()
menu = gg.choice({'NEW: performance','NEW: Technique','NEW: Visual','EXIT'},nil,'Select Cheat')
if menu == 1 then performance() end
if menu == 2 then Technique() end
if menu == 3 then Visual() end
if menu == 4 then os.exit() end
if menu == nil then noselect() end
end

function performance()
input=gg.prompt({'Input your value below'},
	{[1]='0'},
	{[1]='number'})
	if input==nil then
	gg.alert('You have cancelled the dialogue')
	os.exit()
	end
gg.searchNumber(input[1],gg.TYPE_DWORD)
gg.getResults(100)
gg.editAll('9482',gg.TYPE_DWORD)
end

function Technique()
input=gg.prompt({'Input your value below'},
	{[1]='0'},
	{[1]='number'})
	if input==nil then
	gg.alert('You have cancelled the dialogue')
	os.exit()
	end
gg.searchNumber(input[1],gg.TYPE_DWORD)
gg.getResults(100)
gg.editAll('9482',gg.TYPE_DWORD)
end

function Visual()
input=gg.prompt({'Input your value below'},
	{[1]='0'},
	{[1]='number'})
	if input==nil then
	gg.alert('You have cancelled the dialogue')
	os.exit()
	end
gg.searchNumber(input[1],gg.TYPE_DWORD)
gg.getResults(100)
gg.editAll('9482',gg.TYPE_DWORD)
end

function noselect()
gg.toast('You Not Select Anything')
os.exit()
end

while true do
if gg.isVisible(true) then
main()
end
end

 

Zam ? Pleas help me use prompt with refine pleas im making a script 😞

Edited by Begginer12345
  • 0
Posted
1 hour ago, Begginer12345 said:

Zam ? Pleas help me use prompt with refine pleas im making a script 😞

what do you want to do in your script??

show me an example of your script would be better.

 

  • 0
Posted
On 8/24/2020 at 9:50 PM, zam535582 said:

what do you want to do in your script??

show me an example of your script would be better.

 

Im making a script using prompt and the prompt just spam doesn't work with the signal when i press game guaridan this accur unknow signal -1 == 0 pleas help me 😞

  • 0
Posted
3 hours ago, Begginer12345 said:

Im making a script using prompt and the prompt just spam doesn't work with the signal when i press game guaridan this accur unknow signal -1 == 0 pleas help me 😞

not enough details to work with...

cant help.

  • 0
Posted (edited)
10 minutes ago, zam535582 said:

not enough details to work with...

cant help.

Thats fine 🙂 i just cancle my script 🙂

Edited by Begginer12345
Here i upload this i hope you understand if u use prompt if i put number like this for example Input firts number 123 when i press GG the accur 1 vox == 2 voc == neer ? Pleas i want to learn how to use prompt without using any gg.sleep :(

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
×
×
  • 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.