Jump to content

Search the Community

Showing results for tags 'guide'.

More search options

  • 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


  • 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


  • 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


Last Updated

  • Start


Filter by number of...


  • Start




Found 1 result

  1. Wasup everyone, RCPOLSKI here. In this topic you guys are about to learn how to create prefixes like [ON] and [OFF] Why to use this? Well, you can keep you script menu clean and still use it for others things like showing results got by prompt (numbers, words, etc...) There are 2 ways of doing it: Calling and refreshing the stuff right on the menu Creating a function that will be called after the cheat function being read So then, let's go! 1. First you need to store the ON and OFF info as string and then set the function "cstatus" as off on = '[ON]' off = '[OFF]' cstatus = off 2. Here we create our menu and set some things up... - Before every button, if you're going to put the prefix, you'll need to put the string var created up there (Here is cstatus) then 2 dots (..) and finally your text function main() menu = gg.choice({ cstatus .. ' Some random trick', -- cstatus + .. and 'the text' 'Exit'}, nil, 'Cheat menu') if menu == 1 then if cstatus == on then -- Checks if cstatus is [ON] cstatus = off -- If yes, then sets it to [OFF] else cstatus = on -- If it's not, then sets it to [ON] end doCheat() -- After doing the check things, regardless of outcome it call the doCheat function elseif menu == 2 then os.exit() end 3. As you are using vars with data stored in, you can also call 1 function only to enable and disable the cheat function doCheat() if cstatus == on then -- Check if the cstatus is [ON] print('Cheat enabled!') -- If yes, then add the activation code here else print('Cheat disabled!') -- If it's not, then add the desactivation code here end end There is a lua script to download with both first and second method Feel free to use the code! Sorry for my english, still learning tho ? Prefix Tutorial.lua
  • Create New...