CallMeBob Posted August 3, 2021 Posted August 3, 2021 hello, ive been wondering how i make my script do something when i click on thr gameguardian icon. thanks.
MAARS Posted August 3, 2021 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
AKidWithMidgetFriend Posted August 3, 2021 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
Question
CallMeBob
hello,
ive been wondering how i make my script do something when i click on thr gameguardian icon.
thanks.
2 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.