Jump to content

Search the Community

Showing results for tags 'button'.

  • Search By Tags

    Type tags separated by commas.
    For example, the common name of the game: PUBG, Free Fire, Rules of Survival, Critical Ops, Mobile Legends: Bang Bang, etc.
  • Search By Author

Content Type


Forums

  • GameGuardian
    • Requests
    • Help
    • Guides
    • Cheats
    • Video Tutorials
    • Unintended Effects
  • General
    • General Discussion
    • Introduce yourself (:
    • Announcements
    • Website suggestions/Bugs
  • Downloads Support
    • Apps
    • LUA scripts
  • Online Multiplayer Mods
    • Altering Online Games with Gameguardian
    • Download Mods
  • Other Hacks
    • Tutorials
    • Non-GameGuardian
  • Archive
    • Archived topics

Categories

  • Official Downloads
  • Virtual spaces (no root)
  • LUA scripts
    • Forward Assault
    • Free Fire
    • PUBG
    • Rules of Survival
    • Templates
    • Tools
  • Test applications
  • Other

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Device


Discord ID

Found 1 result

  1. Create on/off button in lua script No need to searching values for every time Simple script but better ideas Read this simple script carefully You will be understand Specially thanks to @MuhammadRizwan87 Credit @TDOhex function search() gg.clearResults() gg.setRanges(gg.REGION_C_DATA) gg.searchNumber("1;2;3", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) gg.refineNumber("1", gg.TYPE_FLOAT, false, gg.SIGN_EQUAL, 0, -1) local t = gg.getResults(3) for i, v in ipairs(t) do t[i].name = 'testoff' end gg.addListItems(t) gg.clearResults(t) end search() on = "[OFF]" off = "[ON]" test = off function main() menu = gg.choice({ test.." Test", "Exit"}, nil, "Example by @TDOhex") if menu == 1 then if test == off then test = on local t = gg.getListItems(testoff) for i, v in ipairs(t) do if v.name == "testoff" then t[i].value = 0 t[i].name = 'teston' end gg.setValues(t) gg.addListItems(t) end else test = off local t = gg.getListItems(teston) for i, v in ipairs(t) do if v.name == "teston" then t[i].value = 1 t[i].name = 'testoff' end gg.setValues(t) gg.addListItems(t) end end elseif menu == 2 then print("Thanks to visiting @TDOhex") gg.copyText('https://t.me/TDOhex') intro = "Join to @TDOhex" for i = 1, #intro do gg.toast(intro:sub(1, i) .. "_✍") gg.sleep(140) end local t = gg.getListItems() gg.removeListItems(t) os.exit() end end while true do if gg.isVisible() then gg.setVisible(false) main() end end I just shared it... On-Off_Example.lua
×
×
  • 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.