Jump to content
  • 0

help-me script dialog function minimize


roboticmind

Question

Hello, I need help in this part of my script where it is highlighted with #######

brief code summary: the user enters the current money value, and then the script window minimizes and returns to the game where the user will spend or win a sum of money, then when he opens the script window he will ask for the current one again amount where it will filter and display the current values of the money, it will open a new box asking how much it wants to insert and that's it .. in that case I need a code that minimizes the script window and returns to the game only then when reopened the window that appears the dialog box asking for the new value.

 

 

Hello, I need help in this part of my script where it is highlighted with

--#######

--

--#######

Code;

function sacard ()

input=gg.prompt({' Digite a quantidade de 💰 atual:'},
	{[1]='0'},
	{[1]='number'})
	if input==nil then
	gg.alert('O Diálogo foi cancelado')
	MAINMENU ()
	end
gg.searchNumber(input[1],gg.TYPE_DWORD)
gg.getResults(10)

gg.alert (' Ganhe ou Gaste um pouco de grana ')

--###################
--
--####################

input=gg.prompt({' Digite a quantidade de 💰 atual:'},
	{[2]='0'},
	{[2]='number'})
	if input==nil then
	gg.alert('O Diálogo foi cancelado')
	MAINMENU ()
	end

gg.refineNumber(input[2],gg.TYPE_DWORD)
gg.getResults(10)

input=gg.prompt({' Digite a quantidade que deseja sacar:'},
	{[3]='0'},
	{[3]='number'})
	if input==nil then
	gg.alert('O Diálogo foi cancelado')
	MAINMENU ()
	end
gg.editAll([3],gg.TYPE_DWORD)

end

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

1 hour ago, MonkeyGuy001 said:

TEST_Coins.lua 678 B · 0 downloads

Hi

Try this script example i made sometime ago.

Its run well on its own but dont know if it work for yours.

Im still new in scripting anyway.

Best regards.

 

my brother, it helped a lot i tried all the ways and i was not successful but with this template of yours, i will be able to continue my project a lot of gratitude even bro helped me a lot 🧬🛸👑👑👑👑

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.