Jump to content
  • 0

How to hide gg if I click outside the script?


RevealedSoulEven
 Share

Question

I made a multichoise script when I click outside it the script ends. I want to make such that when I click outside gg hides and after clicking gg it continues where it was stopped.

I know i can use gg.setVisible(false) but i did nil==gg.setVisible(false) then it ends.

Help!

Link to comment
Share on other sites

Recommended Posts

  • 0
9 minutes ago, DESTR0LLERSE said:

 

and if you love a lot (CmP). go and give him a son.

 

lol you seem to be slightly confused as to how things work, its ok when you get to middle school they should have some sex ed classes for ya

Link to comment
Share on other sites

  • 0
3 minutes ago, DESTR0LLERSE said:

omg you are ***** and you have adopted 3 children. XD

as far as we have arrived.

and you also confess to being subjected to pornography on the internet.

omg this can be a "psychopath" alert.

How can I block this person? omg

it's good that everything is registered. what a danger.

Wow thats what you got out of that, thanks for confirming for everyone that your a complete idiot,...

Edited by BadCase
Link to comment
Share on other sites

  • 0
7 minutes ago, DESTR0LLERSE said:

@BadCase I understand that you are angry.

but do not worry, friend.

we respect you and nobody will judge you for being (g-ay)

gay men GIF

and watching pornography.

quiet.

 

With all the projecting you should consider opening up a movie theater....

Link to comment
Share on other sites

  • 0
20 minutes ago, DESTR0LLERSE said:

@BadCase 

this is a theme of "How to hide gg if I click outside the script?"

and not to be hinting at creating pornographic cinemas.

have more respect

To return to the topic I will publish the examples.

example (gg.choice({}))


function DESTROYER()
ts = gg.choice({
"TEST 1",
"TEST2",
"EXIT",
"MINIMIZE SCRIPT"},nil, "SSBkbyBub3QgZm9yZ2V0LiBJJ2xsIHZpc2l0IHlvdSBiYXN0YXJkIHNvb24u")
if ts == 1 then money() end
if ts == 2 then gems() end
if ts == 3 then exit() end
if ts == 4 then minimize() end
menuend=-1
end

function money()
   gg.toast('TEST 1')
end

function gems() 
gg.toast('TEST 2')
end

function exit()
print('DESTROYER')
os.exit()
end

function minimize()
gg.alert('the script now sleeps. press the icon to continue')
end

while(true) do
menuend=0
if gg.isVisible(true) then
gg.setVisible(false) 
menuend=1
end
if menuend==1 then DESTROYER() end
end		

example (gg.multiChoice({''}))


function DESTROYER()
local t = gg.multiChoice({
'TEST', 
'EXIT ',
'MINIMIZE'},nil,'SSBkbyBub3QgZm9yZ2V0LiBJJ2xsIHZpc2l0IHlvdSBiYXN0YXJkIHNvb24u')

if t == nil  then
   DESTROYER()
else
    if t[1] then
        gg.alert('test ')
    end
    if t[2] then
        os.exit()
    end
    if t[3] then
    end
end
end


gg.setVisible(true)
while true do
	if gg.isVisible() then
		gg.setVisible(false)
		DESTROYER()
	end
	gg.sleep(100)
end

 

Respect is earned....

Link to comment
Share on other sites

  • 0

@DESTR0LLERSE it is better , nul function works too :

 

if gg.isVisible(true) then gg.setVisible(false)
end
gg.clearResults()
Qjctx=1
function TG()
credits = 'Your Credits Here'

local t = gg.multiChoice({
'TEST', 
'EXIT'},nil,credits)

if t == nil  then
   gg[string.char(tonumber("73",16))..string.char(tonumber("6c",16))..string.char(tonumber("65",16))..string.char(tonumber("65",16))..string.char(tonumber("70",16))](1)
else
    if t[1] then
        test1()
    end
    if t[2] then
        exit()
    end
end
Qjctx=-1
end


function test1()
gg.alert('test')
end
function exit()
os.exit()
end

while(true)
do
  if gg.isVisible(true) then
    Qjctx=1
    gg.setVisible(false) 
  end 
  gg.clearResults()
  if Qjctx==1 then   TG() end
end

Link to comment
Share on other sites

  • 0
3 hours ago, DESTR0LLERSE said:

a large script will throw a structure error.

why are you trying to divert my attention?

Remember that we are playing.

but for the users I will leave the correct examples below.

example choice.


function DESTROYER()
ts = gg.choice({
"TEST 1",
"TEST2",
"EXIT",
"MINIMIZE SCRIPT"},nil, "SSBkbyBub3QgZm9yZ2V0LiBJJ2xsIHZpc2l0IHlvdSBiYXN0YXJkIHNvb24u")
if ts == 1 then money() end
if ts == 2 then gems() end
if ts == 3 then exit() end
if ts == 4 then minimize() end
menuend=-1
end

function money()
   gg.toast('TEST 1')
end

function gems() 
gg.toast('TEST 2')
end

function exit()
print('DESTROYER')
os.exit()
end

function minimize()
gg.alert('the script now sleeps. press the icon to continue')
end

while(true) do
menuend=0
if gg.isVisible(true) then
gg.setVisible(false) 
menuend=1
end
if menuend==1 then DESTROYER() end
end		

-- example (gg.multiChoice({''}))

function DESTROYER()
local t = gg.multiChoice({
'TEST', 
'EXIT ',
'MINIMIZE'},nil,'SSBkbyBub3QgZm9yZ2V0LiBJJ2xsIHZpc2l0IHlvdSBiYXN0YXJkIHNvb24u')

if t == nil  then
   DESTROYER()
else
    if t[1] then
        gg.alert('test ')
    end
    if t[2] then
        os.exit()
    end
    if t[3] then
    end
end
end


gg.setVisible(true)
while true do
	if gg.isVisible() then
		gg.setVisible(false)
		DESTROYER()
	end
	gg.sleep(100)
end

 

 

 

We are playing yea? 

Your life may be game but my not .

U are just mind blocked child . 

Link to comment
Share on other sites

  • 0
2 hours ago, DESTR0LLERSE said:

I am not a child.

I will be 16 years old very soon.

It is very good to laugh and joke a little.

going crazy brock lesnar GIF by WWE

Ahhh . on this page this is 18+ and u are 15 years old . I was true when i thought that you are child . This silly "GIFS" shows  your brain level kk .😂

Link to comment
Share on other sites

  • 0

were are all those kiddos coming from? I notice this debate is very pointless, as over the years that this page exist we learned that having a logical discussion with kids always go wrong, they always lose the objective and are just here to make drama...all just stop wasting time, the guy who posted this already had his answer lang time ago so there is no point for holding pointless discussion, you all want to "win" the discussion, since that's what a discussion is all about, everybody is reacting based on the "ego", remove the ego guys and just leave it. are your all here to help the guy or are you here to show who is better in debating (what to me is more sounding like a bunch of chickens fighting for the last food)… grow up guys..adults leave, kids go play with ya friends outside or something...but do something useful instead of making drama here, thanks for ya time and please use this method in other cases...don`t react from out the ego. say your point and leave it with ya point. don`t try to put your truth above that of someone else. its not needed.

Link to comment
Share on other sites

  • 0
2 hours ago, RevealedSoulEven said:

What is gg.sleep(100)???

Gg sleep tells GG to sleep .

Type gg.sleep(3000) and it wont do anything for a few seconds. 

If gg.sleep(5000)then it will be stoped more time and etc .

Link to comment
Share on other sites

  • 0
On 3/23/2019 at 2:47 PM, RevealedSoulEven said:

I made a multichoise script when I click outside it the script ends. I want to make such that when I click outside gg hides and after clicking gg it continues where it was stopped.

I know i can use gg.setVisible(false) but i did nil==gg.setVisible(false) then it ends.

Help!

BrO can u plz Give full Guide to hide script when clicked outside...

!help

 

Link to comment
Share on other sites

  • 0
15 minutes ago, DevilShivaSingh said:

BrO can u plz Give full Guide to hide script when clicked outside...

!help

 

You need to put gg.sleep for no action.i.e., nil input.

If you don't understand then , search in templates and see what you are missing in your script.

Link to comment
Share on other sites

  • 0
On 3/23/2019 at 6:17 AM, RevealedSoulEven said:

I made a multichoise script when I click outside it the script ends. I want to make such that when I click outside gg hides and after clicking gg it continues where it was stopped.

I know i can use gg.setVisible(false) but i did nil==gg.setVisible(false) then it ends.

Help!

Better One at the menu function table add

if menu == nil then else end

Link to comment
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
 Share

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