Jump to content
  • 0

How to make Back Button in a Script


RevealedSoulEven

Question

I am making a script and I want a back button inside a menu to reach the Main menu I made this

function BACK()
  gg.setVisible(true)
  Main()
  gg.setVisible(true)

But it doesn't work

Actually it's working but my gg is in background i want it to be visible at the time when back is pressed. Actually it hides and I have to click the gg icon again to make it visible.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

22 minutes ago, RevealedSoulEven said:

I know but you have gave xgck a command with do and while

But what about glww no command was given

Hmm . 

If you dont know what it means then dont use function scripts. 

Examle : function start() change as ::start:: and etc .

 

Link to comment
Share on other sites

17 minutes ago, RevealedSoulEven said:

I am making a script and I want a back button inside a menu to reach the Main menu I made this


function BACK()
  gg.setVisible(true)
  Main()
  gg.setVisible(true)

But it doesn't work

Actually it's working but my gg is in background i want it to be visible at the time when back is pressed. Actually it hides and I have to click the gg icon again to make it visible.

menu.lua

Link to comment
Share on other sites

8 minutes ago, RevealedSoulEven said:

I already use XGCK but what is GLWW and lw=1 in home()

Because you haven't added any method regarding lw and GLWW like you did with XGCK

Hmm . i cannot explain with texts .

This XGCK , GLWW amd etc are only names . if you want make this XGCK as CAR , HOUSE or anything . nothing will br changed. 

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.