CallMeBob Posted August 3, 2021 Share Posted August 3, 2021 hello, ive been wondering how i make my script do something when i click on thr gameguardian icon. thanks. Link to comment Share on other sites More sharing options...
MAARS Posted August 3, 2021 Share Posted August 3, 2021 local debug; local function foo() debug = -1 gg.alert("Dont click me please :(") -- insert your logic here end while true do if gg.isVisible(true) then gg.setVisible(false) debug = 1 end if debug == 1 then foo() end end Link to comment Share on other sites More sharing options...
AKidWithMidgetFriend Posted August 3, 2021 Share Posted August 3, 2021 I believe you want the isUiClickedButton() class, it checks if the GG icon has been clicked since being called. Returns true if clicked and false if hasn't been clicked The help page for it> https://gameguardian.net/help/classgg.html#add52a86cbf6695bb421cc86f4aa0e695 Link to comment Share on other sites More sharing options...
Question
CallMeBob
hello,
ive been wondering how i make my script do something when i click on thr gameguardian icon.
thanks.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.